ResourceType
The type of the resource - can be a string (for CRDs) or a constant from K8S
Example
import { K8S } from '@shell/apis';
// Using constants (recommended)
resources.cluster.findAll(K8S.POD);
// Using strings (for CRDs or dynamic resources)
resources.cluster.findAll('mycompany.io.customresource');
Indexable
[index: number]: string
Properties
length
readonly length: number;
Returns the length of a String object.
Methods
[iterator]()
iterator: StringIterator<string>;
Iterator
Returns
StringIterator<string>
anchor()
anchor(name): string;
Returns an <a> HTML anchor element and sets the name attribute to the text value
Parameters
name
string
Returns
string
Deprecated
A legacy feature for browser compatibility
big()
big(): string;
Returns a <big> HTML element
Returns
string
Deprecated
A legacy feature for browser compatibility
blink()
blink(): string;
Returns a <blink> HTML element
Returns
string
Deprecated
A legacy feature for browser compatibility
bold()
bold(): string;
Returns a <b> HTML element
Returns
string
Deprecated
A legacy feature for browser compatibility
charAt()
charAt(pos): string;
Returns the character at the specified index.
Parameters
pos
number
The zero-based index of the desired character.
Returns
string
charCodeAt()
charCodeAt(index): number;
Returns the Unicode value of the character at the specified location.
Parameters
index
number
The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
Returns
number
codePointAt()
codePointAt(pos): number;
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point value of the UTF-16 encoded code point starting at the string element at position pos in the String resulting from converting this object to a String. If there is no element at that position, the result is undefined. If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
pos
number
Returns
number
concat()
concat(...strings): string;
Returns a string that contains the concatenation of two or more strings.
Parameters
strings
...string[]
The strings to append to the end of the string.
Returns
string
endsWith()
endsWith(searchString, endPosition?): boolean;
Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at endPosition – length(this). Otherwise returns false.
Parameters
searchString
string
endPosition?
number
Returns
boolean
fixed()
fixed(): string;
Returns a <tt> HTML element
Returns
string
Deprecated
A legacy feature for browser compatibility
fontcolor()
fontcolor(color): string;
Returns a <font> HTML element and sets the color attribute value
Parameters
color
string
Returns
string
Deprecated
A legacy feature for browser compatibility
fontsize()
Call Signature
fontsize(size): string;
Returns a <font> HTML element and sets the size attribute value
Parameters
size
number