Documentation
¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Client
- func (c *Client) ClusterAuthTokens(namespace string) ClusterAuthTokenInterface
- func (c *Client) ClusterUserAttributes(namespace string) ClusterUserAttributeInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) Start(ctx context.Context, threadiness int) error
- func (c *Client) Sync(ctx context.Context) error
- type Clients
- type ClusterAuthToken
- type ClusterAuthTokenChangeHandlerFunc
- type ClusterAuthTokenClient
- type ClusterAuthTokenClientCache
- type ClusterAuthTokenController
- type ClusterAuthTokenHandlerFunc
- type ClusterAuthTokenIndexer
- type ClusterAuthTokenInterface
- type ClusterAuthTokenLifecycle
- type ClusterAuthTokenList
- type ClusterAuthTokenLister
- type ClusterAuthTokensGetter
- type ClusterUserAttribute
- type ClusterUserAttributeChangeHandlerFunc
- type ClusterUserAttributeClient
- type ClusterUserAttributeClientCache
- type ClusterUserAttributeController
- type ClusterUserAttributeHandlerFunc
- type ClusterUserAttributeIndexer
- type ClusterUserAttributeInterface
- type ClusterUserAttributeLifecycle
- type ClusterUserAttributeList
- type ClusterUserAttributeLister
- type ClusterUserAttributesGetter
- type Interface
Constants ¶
const ( GroupName = "cluster.cattle.io" Version = "v3" )
Variables ¶
var ( ClusterAuthTokenGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ClusterAuthToken", } ClusterAuthTokenResource = metav1.APIResource{ Name: "clusterauthtokens", SingularName: "clusterauthtoken", Namespaced: true, Kind: ClusterAuthTokenGroupVersionKind.Kind, } )
var ( ClusterUserAttributeGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ClusterUserAttribute", } ClusterUserAttributeResource = metav1.APIResource{ Name: "clusteruserattributes", SingularName: "clusteruserattribute", Namespaced: true, Kind: ClusterUserAttributeGroupVersionKind.Kind, } )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) ClusterAuthTokens ¶
func (c *Client) ClusterAuthTokens(namespace string) ClusterAuthTokenInterface
func (*Client) ClusterUserAttributes ¶
func (c *Client) ClusterUserAttributes(namespace string) ClusterUserAttributeInterface
func (*Client) RESTClient ¶
type Clients ¶
type Clients struct {
Interface Interface
ClusterAuthToken ClusterAuthTokenClient
ClusterUserAttribute ClusterUserAttributeClient
}
func ClientsFrom ¶
func NewClientsFromInterface ¶
type ClusterAuthToken ¶
type ClusterAuthToken struct {
types.Namespaced
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
UserName string `json:"userName"`
ExpiresAt string `json:"expiresAt,omitempty"`
SecretKeyHash string `json:"hash"`
Enabled bool `json:"enabled"`
}
func NewClusterAuthToken ¶
func NewClusterAuthToken(namespace, name string, obj ClusterAuthToken) *ClusterAuthToken
func (*ClusterAuthToken) DeepCopy ¶
func (in *ClusterAuthToken) DeepCopy() *ClusterAuthToken
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAuthToken.
func (*ClusterAuthToken) DeepCopyInto ¶
func (in *ClusterAuthToken) DeepCopyInto(out *ClusterAuthToken)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterAuthToken) DeepCopyObject ¶
func (in *ClusterAuthToken) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterAuthTokenChangeHandlerFunc ¶
type ClusterAuthTokenChangeHandlerFunc func(obj *ClusterAuthToken) (runtime.Object, error)
type ClusterAuthTokenClient ¶
type ClusterAuthTokenClient interface {
Create(*ClusterAuthToken) (*ClusterAuthToken, error)
Get(namespace, name string, opts metav1.GetOptions) (*ClusterAuthToken, error)
Update(*ClusterAuthToken) (*ClusterAuthToken, error)
Delete(namespace, name string, options *metav1.DeleteOptions) error
List(namespace string, opts metav1.ListOptions) (*ClusterAuthTokenList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)
Cache() ClusterAuthTokenClientCache
OnCreate(ctx context.Context, name string, sync ClusterAuthTokenChangeHandlerFunc)
OnChange(ctx context.Context, name string, sync ClusterAuthTokenChangeHandlerFunc)
OnRemove(ctx context.Context, name string, sync ClusterAuthTokenChangeHandlerFunc)
Enqueue(namespace, name string)
Generic() controller.GenericController
ObjectClient() *objectclient.ObjectClient
Interface() ClusterAuthTokenInterface
}
type ClusterAuthTokenClientCache ¶
type ClusterAuthTokenClientCache interface {
Get(namespace, name string) (*ClusterAuthToken, error)
List(namespace string, selector labels.Selector) ([]*ClusterAuthToken, error)
Index(name string, indexer ClusterAuthTokenIndexer)
GetIndexed(name, key string) ([]*ClusterAuthToken, error)
}
type ClusterAuthTokenController ¶
type ClusterAuthTokenController interface {
Generic() controller.GenericController
Informer() cache.SharedIndexInformer
Lister() ClusterAuthTokenLister
AddHandler(ctx context.Context, name string, handler ClusterAuthTokenHandlerFunc)
AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ClusterAuthTokenHandlerFunc)
Enqueue(namespace, name string)
Sync(ctx context.Context) error
Start(ctx context.Context, threadiness int) error
}
type ClusterAuthTokenHandlerFunc ¶
type ClusterAuthTokenHandlerFunc func(key string, obj *ClusterAuthToken) (runtime.Object, error)
func NewClusterAuthTokenLifecycleAdapter ¶
func NewClusterAuthTokenLifecycleAdapter(name string, clusterScoped bool, client ClusterAuthTokenInterface, l ClusterAuthTokenLifecycle) ClusterAuthTokenHandlerFunc
type ClusterAuthTokenIndexer ¶
type ClusterAuthTokenIndexer func(obj *ClusterAuthToken) ([]string, error)
type ClusterAuthTokenInterface ¶
type ClusterAuthTokenInterface interface {
ObjectClient() *objectclient.ObjectClient
Create(*ClusterAuthToken) (*ClusterAuthToken, error)
GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ClusterAuthToken, error)
Get(name string, opts metav1.GetOptions) (*ClusterAuthToken, error)
Update(*ClusterAuthToken) (*ClusterAuthToken, error)
Delete(name string, options *metav1.DeleteOptions) error
DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
List(opts metav1.ListOptions) (*ClusterAuthTokenList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)
DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
Controller() ClusterAuthTokenController
AddHandler(ctx context.Context, name string, sync ClusterAuthTokenHandlerFunc)
AddLifecycle(ctx context.Context, name string, lifecycle ClusterAuthTokenLifecycle)
AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ClusterAuthTokenHandlerFunc)
AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ClusterAuthTokenLifecycle)
}
type ClusterAuthTokenLifecycle ¶
type ClusterAuthTokenLifecycle interface {
Create(obj *ClusterAuthToken) (runtime.Object, error)
Remove(obj *ClusterAuthToken) (runtime.Object, error)
Updated(obj *ClusterAuthToken) (runtime.Object, error)
}
type ClusterAuthTokenList ¶
type ClusterAuthTokenList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterAuthToken
}
func (*ClusterAuthTokenList) DeepCopy ¶
func (in *ClusterAuthTokenList) DeepCopy() *ClusterAuthTokenList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAuthTokenList.
func (*ClusterAuthTokenList) DeepCopyInto ¶
func (in *ClusterAuthTokenList) DeepCopyInto(out *ClusterAuthTokenList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterAuthTokenList) DeepCopyObject ¶
func (in *ClusterAuthTokenList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterAuthTokenLister ¶
type ClusterAuthTokenLister interface {
List(namespace string, selector labels.Selector) (ret []*ClusterAuthToken, err error)
Get(namespace, name string) (*ClusterAuthToken, error)
}
type ClusterAuthTokensGetter ¶
type ClusterAuthTokensGetter interface {
ClusterAuthTokens(namespace string) ClusterAuthTokenInterface
}
type ClusterUserAttribute ¶
type ClusterUserAttribute struct {
types.Namespaced
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Groups []string `json:"groups,omitempty"`
LastRefresh string `json:"lastRefresh,omitempty"`
NeedsRefresh bool `json:"needsRefresh"`
Enabled bool `json:"enabled"`
}
func NewClusterUserAttribute ¶
func NewClusterUserAttribute(namespace, name string, obj ClusterUserAttribute) *ClusterUserAttribute
func (*ClusterUserAttribute) DeepCopy ¶
func (in *ClusterUserAttribute) DeepCopy() *ClusterUserAttribute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUserAttribute.
func (*ClusterUserAttribute) DeepCopyInto ¶
func (in *ClusterUserAttribute) DeepCopyInto(out *ClusterUserAttribute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterUserAttribute) DeepCopyObject ¶
func (in *ClusterUserAttribute) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterUserAttributeChangeHandlerFunc ¶
type ClusterUserAttributeChangeHandlerFunc func(obj *ClusterUserAttribute) (runtime.Object, error)
type ClusterUserAttributeClient ¶
type ClusterUserAttributeClient interface {
Create(*ClusterUserAttribute) (*ClusterUserAttribute, error)
Get(namespace, name string, opts metav1.GetOptions) (*ClusterUserAttribute, error)
Update(*ClusterUserAttribute) (*ClusterUserAttribute, error)
Delete(namespace, name string, options *metav1.DeleteOptions) error
List(namespace string, opts metav1.ListOptions) (*ClusterUserAttributeList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)
Cache() ClusterUserAttributeClientCache
OnCreate(ctx context.Context, name string, sync ClusterUserAttributeChangeHandlerFunc)
OnChange(ctx context.Context, name string, sync ClusterUserAttributeChangeHandlerFunc)
OnRemove(ctx context.Context, name string, sync ClusterUserAttributeChangeHandlerFunc)
Enqueue(namespace, name string)
Generic() controller.GenericController
ObjectClient() *objectclient.ObjectClient
Interface() ClusterUserAttributeInterface
}
type ClusterUserAttributeClientCache ¶
type ClusterUserAttributeClientCache interface {
Get(namespace, name string) (*ClusterUserAttribute, error)
List(namespace string, selector labels.Selector) ([]*ClusterUserAttribute, error)
Index(name string, indexer ClusterUserAttributeIndexer)
GetIndexed(name, key string) ([]*ClusterUserAttribute, error)
}
type ClusterUserAttributeController ¶
type ClusterUserAttributeController interface {
Generic() controller.GenericController
Informer() cache.SharedIndexInformer
Lister() ClusterUserAttributeLister
AddHandler(ctx context.Context, name string, handler ClusterUserAttributeHandlerFunc)
AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ClusterUserAttributeHandlerFunc)
Enqueue(namespace, name string)
Sync(ctx context.Context) error
Start(ctx context.Context, threadiness int) error
}
type ClusterUserAttributeHandlerFunc ¶
type ClusterUserAttributeHandlerFunc func(key string, obj *ClusterUserAttribute) (runtime.Object, error)
func NewClusterUserAttributeLifecycleAdapter ¶
func NewClusterUserAttributeLifecycleAdapter(name string, clusterScoped bool, client ClusterUserAttributeInterface, l ClusterUserAttributeLifecycle) ClusterUserAttributeHandlerFunc
type ClusterUserAttributeIndexer ¶
type ClusterUserAttributeIndexer func(obj *ClusterUserAttribute) ([]string, error)
type ClusterUserAttributeInterface ¶
type ClusterUserAttributeInterface interface {
ObjectClient() *objectclient.ObjectClient
Create(*ClusterUserAttribute) (*ClusterUserAttribute, error)
GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ClusterUserAttribute, error)
Get(name string, opts metav1.GetOptions) (*ClusterUserAttribute, error)
Update(*ClusterUserAttribute) (*ClusterUserAttribute, error)
Delete(name string, options *metav1.DeleteOptions) error
DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
List(opts metav1.ListOptions) (*ClusterUserAttributeList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)
DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
Controller() ClusterUserAttributeController
AddHandler(ctx context.Context, name string, sync ClusterUserAttributeHandlerFunc)
AddLifecycle(ctx context.Context, name string, lifecycle ClusterUserAttributeLifecycle)
AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ClusterUserAttributeHandlerFunc)
AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ClusterUserAttributeLifecycle)
}
type ClusterUserAttributeLifecycle ¶
type ClusterUserAttributeLifecycle interface {
Create(obj *ClusterUserAttribute) (runtime.Object, error)
Remove(obj *ClusterUserAttribute) (runtime.Object, error)
Updated(obj *ClusterUserAttribute) (runtime.Object, error)
}
type ClusterUserAttributeList ¶
type ClusterUserAttributeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterUserAttribute
}
func (*ClusterUserAttributeList) DeepCopy ¶
func (in *ClusterUserAttributeList) DeepCopy() *ClusterUserAttributeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterUserAttributeList.
func (*ClusterUserAttributeList) DeepCopyInto ¶
func (in *ClusterUserAttributeList) DeepCopyInto(out *ClusterUserAttributeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterUserAttributeList) DeepCopyObject ¶
func (in *ClusterUserAttributeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterUserAttributeLister ¶
type ClusterUserAttributeLister interface {
List(namespace string, selector labels.Selector) (ret []*ClusterUserAttribute, err error)
Get(namespace, name string) (*ClusterUserAttribute, error)
}
type ClusterUserAttributesGetter ¶
type ClusterUserAttributesGetter interface {
ClusterUserAttributes(namespace string) ClusterUserAttributeInterface
}
type Interface ¶
type Interface interface {
RESTClient() rest.Interface
controller.Starter
ClusterAuthTokensGetter
ClusterUserAttributesGetter
}