Search
Preparing search index...
The search index is not available
@alphahorizonio/webnetes
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Repository
Class Repository<T, I>
Type parameters
T
:
IResource
<
any
>
I
:
IInstance
<
any
>
Hierarchy
ResourceManager
<
T
>
Repository
Implements
IResource
<
IRepositorySpec
>
Index
Constructors
constructor
Properties
api
Version
instances
kind
metadata
resources
spec
Methods
add
Instance
add
Resource
find
Instance
find
Resource
remove
Instance
remove
Resource
Constructors
constructor
new
Repository
(
metadata
:
IResourceMetadata
, spec
:
IRepositorySpec
)
:
Repository
Parameters
metadata:
IResourceMetadata
spec:
IRepositorySpec
Returns
Repository
Properties
api
Version
api
Version
:
string
= API_VERSION
Protected
instances
instances
:
I
[]
= [] as I[]
kind
kind
:
EResourceKind
= EResourceKind.REPOSITORY
metadata
metadata
:
IResourceMetadata
Protected
resources
resources
:
T
[]
= [] as T[]
spec
spec
:
IRepositorySpec
Methods
Protected
add
Instance
add
Instance<R>
(
apiVersion
:
R
[
"apiVersion"
]
, kind
:
R
[
"kind"
]
, metadata
:
R
[
"metadata"
]
, instance
:
R
[
"instance"
]
)
:
Promise
<
void
>
Type parameters
R
:
I
Parameters
apiVersion:
R
[
"apiVersion"
]
kind:
R
[
"kind"
]
metadata:
R
[
"metadata"
]
instance:
R
[
"instance"
]
Returns
Promise
<
void
>
Protected
add
Resource
add
Resource<R>
(
apiVersion
:
R
[
"apiVersion"
]
, kind
:
R
[
"kind"
]
, metadata
:
R
[
"metadata"
]
, spec
:
R
[
"spec"
]
)
:
Promise
<
void
>
Type parameters
R
:
T
Parameters
apiVersion:
R
[
"apiVersion"
]
kind:
R
[
"kind"
]
metadata:
R
[
"metadata"
]
spec:
R
[
"spec"
]
Returns
Promise
<
void
>
Protected
find
Instance
find
Instance<R>
(
apiVersion
:
R
[
"apiVersion"
]
, kind
:
R
[
"kind"
]
, label
:
R
[
"metadata"
]
[
"label"
]
)
:
Promise
<
R
>
Type parameters
R
:
I
Parameters
apiVersion:
R
[
"apiVersion"
]
kind:
R
[
"kind"
]
label:
R
[
"metadata"
]
[
"label"
]
Returns
Promise
<
R
>
Protected
find
Resource
find
Resource<R>
(
apiVersion
:
R
[
"apiVersion"
]
, kind
:
R
[
"kind"
]
, label
:
R
[
"metadata"
]
[
"label"
]
)
:
Promise
<
R
>
Type parameters
R
:
T
Parameters
apiVersion:
R
[
"apiVersion"
]
kind:
R
[
"kind"
]
label:
R
[
"metadata"
]
[
"label"
]
Returns
Promise
<
R
>
Protected
remove
Instance
remove
Instance<R>
(
apiVersion
:
R
[
"apiVersion"
]
, kind
:
R
[
"kind"
]
, label
:
R
[
"metadata"
]
[
"label"
]
)
:
Promise
<
void
>
Type parameters
R
:
I
Parameters
apiVersion:
R
[
"apiVersion"
]
kind:
R
[
"kind"
]
label:
R
[
"metadata"
]
[
"label"
]
Returns
Promise
<
void
>
Protected
remove
Resource
remove
Resource<R>
(
apiVersion
:
R
[
"apiVersion"
]
, kind
:
R
[
"kind"
]
, label
:
R
[
"metadata"
]
[
"label"
]
)
:
Promise
<
void
>
Type parameters
R
:
T
Parameters
apiVersion:
R
[
"apiVersion"
]
kind:
R
[
"kind"
]
label:
R
[
"metadata"
]
[
"label"
]
Returns
Promise
<
void
>
Globals
Repository
constructor
api
Version
instances
kind
metadata
resources
spec
add
Instance
add
Resource
find
Instance
find
Resource
remove
Instance
remove
Resource
Generated using
TypeDoc