v3

package
v0.0.0-...-40227b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "cluster.cattle.io"
	Version   = "v3"
)

Variables

View Source
var (
	ClusterAuthTokenGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ClusterAuthToken",
	}
	ClusterAuthTokenResource = metav1.APIResource{
		Name:         "clusterauthtokens",
		SingularName: "clusterauthtoken",
		Namespaced:   true,

		Kind: ClusterAuthTokenGroupVersionKind.Kind,
	}
)
View Source
var (
	ClusterUserAttributeGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ClusterUserAttribute",
	}
	ClusterUserAttributeResource = metav1.APIResource{
		Name:         "clusteruserattributes",
		SingularName: "clusteruserattribute",
		Namespaced:   true,

		Kind: ClusterUserAttributeGroupVersionKind.Kind,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Factory

func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) ClusterAuthTokens

func (c *Client) ClusterAuthTokens(namespace string) ClusterAuthTokenInterface

func (*Client) ClusterUserAttributes

func (c *Client) ClusterUserAttributes(namespace string) ClusterUserAttributeInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

type Clients

type Clients struct {
	Interface Interface

	ClusterAuthToken     ClusterAuthTokenClient
	ClusterUserAttribute ClusterUserAttributeClient
}

func ClientsFrom

func ClientsFrom(ctx context.Context) *Clients

func NewClients

func NewClients(config rest.Config) (*Clients, error)

func NewClientsFromInterface

func NewClientsFromInterface(iface Interface) *Clients

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

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

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 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)

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

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

func From

func From(ctx context.Context) Interface

func NewForConfig

func NewForConfig(config rest.Config) (Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL