v1alpha1

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 = "rbac.istio.io"
	Version   = "v1alpha1"
)

Variables

View Source
var (
	ClusterRbacConfigGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ClusterRbacConfig",
	}
	ClusterRbacConfigResource = metav1.APIResource{
		Name:         "clusterrbacconfigs",
		SingularName: "clusterrbacconfig",
		Namespaced:   true,

		Kind: ClusterRbacConfigGroupVersionKind.Kind,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	ServiceRoleBindingGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ServiceRoleBinding",
	}
	ServiceRoleBindingResource = metav1.APIResource{
		Name:         "servicerolebindings",
		SingularName: "servicerolebinding",
		Namespaced:   true,

		Kind: ServiceRoleBindingGroupVersionKind.Kind,
	}
)
View Source
var (
	ServiceRoleGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ServiceRole",
	}
	ServiceRoleResource = metav1.APIResource{
		Name:         "serviceroles",
		SingularName: "servicerole",
		Namespaced:   true,

		Kind: ServiceRoleGroupVersionKind.Kind,
	}
)
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 NewClusterRbacConfig

func NewClusterRbacConfig(namespace, name string, obj v1alpha1.ClusterRbacConfig) *v1alpha1.ClusterRbacConfig

func NewServiceRole

func NewServiceRole(namespace, name string, obj v1alpha1.ServiceRole) *v1alpha1.ServiceRole

func NewServiceRoleBinding

func NewServiceRoleBinding(namespace, name string, obj v1alpha1.ServiceRoleBinding) *v1alpha1.ServiceRoleBinding

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

func (c *Client) ClusterRbacConfigs(namespace string) ClusterRbacConfigInterface

func (*Client) RESTClient

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

func (*Client) ServiceRoleBindings

func (c *Client) ServiceRoleBindings(namespace string) ServiceRoleBindingInterface

func (*Client) ServiceRoles

func (c *Client) ServiceRoles(namespace string) ServiceRoleInterface

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

	ClusterRbacConfig  ClusterRbacConfigClient
	ServiceRole        ServiceRoleClient
	ServiceRoleBinding ServiceRoleBindingClient
}

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 ClusterRbacConfigChangeHandlerFunc

type ClusterRbacConfigChangeHandlerFunc func(obj *v1alpha1.ClusterRbacConfig) (runtime.Object, error)

type ClusterRbacConfigClientCache

type ClusterRbacConfigClientCache interface {
	Get(namespace, name string) (*v1alpha1.ClusterRbacConfig, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.ClusterRbacConfig, error)

	Index(name string, indexer ClusterRbacConfigIndexer)
	GetIndexed(name, key string) ([]*v1alpha1.ClusterRbacConfig, error)
}

type ClusterRbacConfigController

type ClusterRbacConfigController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() ClusterRbacConfigLister
	AddHandler(ctx context.Context, name string, handler ClusterRbacConfigHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ClusterRbacConfigHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ClusterRbacConfigHandlerFunc

type ClusterRbacConfigHandlerFunc func(key string, obj *v1alpha1.ClusterRbacConfig) (runtime.Object, error)

func NewClusterRbacConfigLifecycleAdapter

func NewClusterRbacConfigLifecycleAdapter(name string, clusterScoped bool, client ClusterRbacConfigInterface, l ClusterRbacConfigLifecycle) ClusterRbacConfigHandlerFunc

type ClusterRbacConfigIndexer

type ClusterRbacConfigIndexer func(obj *v1alpha1.ClusterRbacConfig) ([]string, error)

type ClusterRbacConfigInterface

type ClusterRbacConfigInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha1.ClusterRbacConfig) (*v1alpha1.ClusterRbacConfig, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha1.ClusterRbacConfig, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha1.ClusterRbacConfig, error)
	Update(*v1alpha1.ClusterRbacConfig) (*v1alpha1.ClusterRbacConfig, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ClusterRbacConfigList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ClusterRbacConfigController
	AddHandler(ctx context.Context, name string, sync ClusterRbacConfigHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ClusterRbacConfigLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ClusterRbacConfigHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ClusterRbacConfigLifecycle)
}

type ClusterRbacConfigLifecycle

type ClusterRbacConfigLifecycle interface {
	Create(obj *v1alpha1.ClusterRbacConfig) (runtime.Object, error)
	Remove(obj *v1alpha1.ClusterRbacConfig) (runtime.Object, error)
	Updated(obj *v1alpha1.ClusterRbacConfig) (runtime.Object, error)
}

type ClusterRbacConfigList

type ClusterRbacConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha1.ClusterRbacConfig
}

func (*ClusterRbacConfigList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRbacConfigList.

func (*ClusterRbacConfigList) DeepCopyInto

func (in *ClusterRbacConfigList) DeepCopyInto(out *ClusterRbacConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterRbacConfigList) DeepCopyObject

func (in *ClusterRbacConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterRbacConfigLister

type ClusterRbacConfigLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha1.ClusterRbacConfig, err error)
	Get(namespace, name string) (*v1alpha1.ClusterRbacConfig, error)
}

type ClusterRbacConfigsGetter

type ClusterRbacConfigsGetter interface {
	ClusterRbacConfigs(namespace string) ClusterRbacConfigInterface
}

type Interface

func From

func From(ctx context.Context) Interface

func NewForConfig

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

type ServiceRoleBindingChangeHandlerFunc

type ServiceRoleBindingChangeHandlerFunc func(obj *v1alpha1.ServiceRoleBinding) (runtime.Object, error)

type ServiceRoleBindingClientCache

type ServiceRoleBindingClientCache interface {
	Get(namespace, name string) (*v1alpha1.ServiceRoleBinding, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.ServiceRoleBinding, error)

	Index(name string, indexer ServiceRoleBindingIndexer)
	GetIndexed(name, key string) ([]*v1alpha1.ServiceRoleBinding, error)
}

type ServiceRoleBindingController

type ServiceRoleBindingController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() ServiceRoleBindingLister
	AddHandler(ctx context.Context, name string, handler ServiceRoleBindingHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ServiceRoleBindingHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ServiceRoleBindingHandlerFunc

type ServiceRoleBindingHandlerFunc func(key string, obj *v1alpha1.ServiceRoleBinding) (runtime.Object, error)

func NewServiceRoleBindingLifecycleAdapter

func NewServiceRoleBindingLifecycleAdapter(name string, clusterScoped bool, client ServiceRoleBindingInterface, l ServiceRoleBindingLifecycle) ServiceRoleBindingHandlerFunc

type ServiceRoleBindingIndexer

type ServiceRoleBindingIndexer func(obj *v1alpha1.ServiceRoleBinding) ([]string, error)

type ServiceRoleBindingInterface

type ServiceRoleBindingInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha1.ServiceRoleBinding) (*v1alpha1.ServiceRoleBinding, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha1.ServiceRoleBinding, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha1.ServiceRoleBinding, error)
	Update(*v1alpha1.ServiceRoleBinding) (*v1alpha1.ServiceRoleBinding, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ServiceRoleBindingList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ServiceRoleBindingController
	AddHandler(ctx context.Context, name string, sync ServiceRoleBindingHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ServiceRoleBindingLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ServiceRoleBindingHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ServiceRoleBindingLifecycle)
}

type ServiceRoleBindingLifecycle

type ServiceRoleBindingLifecycle interface {
	Create(obj *v1alpha1.ServiceRoleBinding) (runtime.Object, error)
	Remove(obj *v1alpha1.ServiceRoleBinding) (runtime.Object, error)
	Updated(obj *v1alpha1.ServiceRoleBinding) (runtime.Object, error)
}

type ServiceRoleBindingList

type ServiceRoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha1.ServiceRoleBinding
}

func (*ServiceRoleBindingList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRoleBindingList.

func (*ServiceRoleBindingList) DeepCopyInto

func (in *ServiceRoleBindingList) DeepCopyInto(out *ServiceRoleBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceRoleBindingList) DeepCopyObject

func (in *ServiceRoleBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceRoleBindingLister

type ServiceRoleBindingLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha1.ServiceRoleBinding, err error)
	Get(namespace, name string) (*v1alpha1.ServiceRoleBinding, error)
}

type ServiceRoleBindingsGetter

type ServiceRoleBindingsGetter interface {
	ServiceRoleBindings(namespace string) ServiceRoleBindingInterface
}

type ServiceRoleChangeHandlerFunc

type ServiceRoleChangeHandlerFunc func(obj *v1alpha1.ServiceRole) (runtime.Object, error)

type ServiceRoleClient

type ServiceRoleClient interface {
	Create(*v1alpha1.ServiceRole) (*v1alpha1.ServiceRole, error)
	Get(namespace, name string, opts metav1.GetOptions) (*v1alpha1.ServiceRole, error)
	Update(*v1alpha1.ServiceRole) (*v1alpha1.ServiceRole, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*ServiceRoleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() ServiceRoleClientCache

	OnCreate(ctx context.Context, name string, sync ServiceRoleChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync ServiceRoleChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync ServiceRoleChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() ServiceRoleInterface
}

type ServiceRoleClientCache

type ServiceRoleClientCache interface {
	Get(namespace, name string) (*v1alpha1.ServiceRole, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.ServiceRole, error)

	Index(name string, indexer ServiceRoleIndexer)
	GetIndexed(name, key string) ([]*v1alpha1.ServiceRole, error)
}

type ServiceRoleController

type ServiceRoleController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() ServiceRoleLister
	AddHandler(ctx context.Context, name string, handler ServiceRoleHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ServiceRoleHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ServiceRoleHandlerFunc

type ServiceRoleHandlerFunc func(key string, obj *v1alpha1.ServiceRole) (runtime.Object, error)

func NewServiceRoleLifecycleAdapter

func NewServiceRoleLifecycleAdapter(name string, clusterScoped bool, client ServiceRoleInterface, l ServiceRoleLifecycle) ServiceRoleHandlerFunc

type ServiceRoleIndexer

type ServiceRoleIndexer func(obj *v1alpha1.ServiceRole) ([]string, error)

type ServiceRoleInterface

type ServiceRoleInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha1.ServiceRole) (*v1alpha1.ServiceRole, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha1.ServiceRole, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha1.ServiceRole, error)
	Update(*v1alpha1.ServiceRole) (*v1alpha1.ServiceRole, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ServiceRoleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ServiceRoleController
	AddHandler(ctx context.Context, name string, sync ServiceRoleHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ServiceRoleLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ServiceRoleHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ServiceRoleLifecycle)
}

type ServiceRoleLifecycle

type ServiceRoleLifecycle interface {
	Create(obj *v1alpha1.ServiceRole) (runtime.Object, error)
	Remove(obj *v1alpha1.ServiceRole) (runtime.Object, error)
	Updated(obj *v1alpha1.ServiceRole) (runtime.Object, error)
}

type ServiceRoleList

type ServiceRoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1alpha1.ServiceRole
}

func (*ServiceRoleList) DeepCopy

func (in *ServiceRoleList) DeepCopy() *ServiceRoleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRoleList.

func (*ServiceRoleList) DeepCopyInto

func (in *ServiceRoleList) DeepCopyInto(out *ServiceRoleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceRoleList) DeepCopyObject

func (in *ServiceRoleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceRoleLister

type ServiceRoleLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha1.ServiceRole, err error)
	Get(namespace, name string) (*v1alpha1.ServiceRole, error)
}

type ServiceRolesGetter

type ServiceRolesGetter interface {
	ServiceRoles(namespace string) ServiceRoleInterface
}

Jump to

Keyboard shortcuts

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