Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewIngress(namespace, name string, obj v1beta1.Ingress) *v1beta1.Ingress
- func NewPodSecurityPolicy(namespace, name string, obj v1beta1.PodSecurityPolicy) *v1beta1.PodSecurityPolicy
- func Resource(resource string) schema.GroupResource
- type Client
- func (c *Client) Ingresses(namespace string) IngressInterface
- func (c *Client) PodSecurityPolicies(namespace string) PodSecurityPolicyInterface
- 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 IngressChangeHandlerFunc
- type IngressClient
- type IngressClientCache
- type IngressController
- type IngressHandlerFunc
- type IngressIndexer
- type IngressInterface
- type IngressLifecycle
- type IngressList
- type IngressLister
- type IngressesGetter
- type Interface
- type PodSecurityPoliciesGetter
- type PodSecurityPolicyChangeHandlerFunc
- type PodSecurityPolicyClient
- type PodSecurityPolicyClientCache
- type PodSecurityPolicyController
- type PodSecurityPolicyHandlerFunc
- type PodSecurityPolicyIndexer
- type PodSecurityPolicyInterface
- type PodSecurityPolicyLifecycle
- type PodSecurityPolicyList
- type PodSecurityPolicyLister
Constants ¶
const ( GroupName = "extensions" Version = "v1beta1" )
Variables ¶
var ( IngressGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Ingress", } IngressResource = metav1.APIResource{ Name: "ingresses", SingularName: "ingress", Namespaced: true, Kind: IngressGroupVersionKind.Kind, } IngressGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "ingresses", } )
var ( PodSecurityPolicyGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "PodSecurityPolicy", } PodSecurityPolicyResource = metav1.APIResource{ Name: "podsecuritypolicies", SingularName: "podsecuritypolicy", Namespaced: false, Kind: PodSecurityPolicyGroupVersionKind.Kind, } PodSecurityPolicyGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "podsecuritypolicies", } )
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 NewPodSecurityPolicy ¶
func NewPodSecurityPolicy(namespace, name string, obj v1beta1.PodSecurityPolicy) *v1beta1.PodSecurityPolicy
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) Ingresses ¶
func (c *Client) Ingresses(namespace string) IngressInterface
func (*Client) PodSecurityPolicies ¶
func (c *Client) PodSecurityPolicies(namespace string) PodSecurityPolicyInterface
func (*Client) RESTClient ¶
type Clients ¶
type Clients struct { Interface Interface PodSecurityPolicy PodSecurityPolicyClient Ingress IngressClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type IngressClient ¶
type IngressClient interface { Create(*v1beta1.Ingress) (*v1beta1.Ingress, error) Get(namespace, name string, opts metav1.GetOptions) (*v1beta1.Ingress, error) Update(*v1beta1.Ingress) (*v1beta1.Ingress, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*IngressList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() IngressClientCache OnCreate(ctx context.Context, name string, sync IngressChangeHandlerFunc) OnChange(ctx context.Context, name string, sync IngressChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync IngressChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() IngressInterface }
type IngressClientCache ¶
type IngressController ¶
type IngressController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() IngressLister AddHandler(ctx context.Context, name string, handler IngressHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync IngressHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler IngressHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler IngressHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type IngressHandlerFunc ¶
func NewIngressLifecycleAdapter ¶
func NewIngressLifecycleAdapter(name string, clusterScoped bool, client IngressInterface, l IngressLifecycle) IngressHandlerFunc
type IngressInterface ¶
type IngressInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1beta1.Ingress) (*v1beta1.Ingress, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta1.Ingress, error) Get(name string, opts metav1.GetOptions) (*v1beta1.Ingress, error) Update(*v1beta1.Ingress) (*v1beta1.Ingress, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*IngressList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() IngressController AddHandler(ctx context.Context, name string, sync IngressHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync IngressHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle IngressLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle IngressLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync IngressHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync IngressHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle IngressLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle IngressLifecycle) }
type IngressLifecycle ¶
type IngressList ¶
type IngressList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta1.Ingress `json:"items"` }
func (*IngressList) DeepCopy ¶
func (in *IngressList) DeepCopy() *IngressList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList.
func (*IngressList) DeepCopyInto ¶
func (in *IngressList) DeepCopyInto(out *IngressList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressList) DeepCopyObject ¶
func (in *IngressList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IngressLister ¶
type IngressesGetter ¶
type IngressesGetter interface {
Ingresses(namespace string) IngressInterface
}
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter PodSecurityPoliciesGetter IngressesGetter }
type PodSecurityPoliciesGetter ¶
type PodSecurityPoliciesGetter interface {
PodSecurityPolicies(namespace string) PodSecurityPolicyInterface
}
type PodSecurityPolicyChangeHandlerFunc ¶
type PodSecurityPolicyChangeHandlerFunc func(obj *v1beta1.PodSecurityPolicy) (runtime.Object, error)
type PodSecurityPolicyClient ¶
type PodSecurityPolicyClient interface { Create(*v1beta1.PodSecurityPolicy) (*v1beta1.PodSecurityPolicy, error) Get(namespace, name string, opts metav1.GetOptions) (*v1beta1.PodSecurityPolicy, error) Update(*v1beta1.PodSecurityPolicy) (*v1beta1.PodSecurityPolicy, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*PodSecurityPolicyList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() PodSecurityPolicyClientCache OnCreate(ctx context.Context, name string, sync PodSecurityPolicyChangeHandlerFunc) OnChange(ctx context.Context, name string, sync PodSecurityPolicyChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync PodSecurityPolicyChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() PodSecurityPolicyInterface }
type PodSecurityPolicyClientCache ¶
type PodSecurityPolicyClientCache interface { Get(namespace, name string) (*v1beta1.PodSecurityPolicy, error) List(namespace string, selector labels.Selector) ([]*v1beta1.PodSecurityPolicy, error) Index(name string, indexer PodSecurityPolicyIndexer) GetIndexed(name, key string) ([]*v1beta1.PodSecurityPolicy, error) }
type PodSecurityPolicyController ¶
type PodSecurityPolicyController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() PodSecurityPolicyLister AddHandler(ctx context.Context, name string, handler PodSecurityPolicyHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync PodSecurityPolicyHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler PodSecurityPolicyHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler PodSecurityPolicyHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type PodSecurityPolicyHandlerFunc ¶
type PodSecurityPolicyHandlerFunc func(key string, obj *v1beta1.PodSecurityPolicy) (runtime.Object, error)
func NewPodSecurityPolicyLifecycleAdapter ¶
func NewPodSecurityPolicyLifecycleAdapter(name string, clusterScoped bool, client PodSecurityPolicyInterface, l PodSecurityPolicyLifecycle) PodSecurityPolicyHandlerFunc
type PodSecurityPolicyIndexer ¶
type PodSecurityPolicyIndexer func(obj *v1beta1.PodSecurityPolicy) ([]string, error)
type PodSecurityPolicyInterface ¶
type PodSecurityPolicyInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1beta1.PodSecurityPolicy) (*v1beta1.PodSecurityPolicy, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta1.PodSecurityPolicy, error) Get(name string, opts metav1.GetOptions) (*v1beta1.PodSecurityPolicy, error) Update(*v1beta1.PodSecurityPolicy) (*v1beta1.PodSecurityPolicy, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*PodSecurityPolicyList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() PodSecurityPolicyController AddHandler(ctx context.Context, name string, sync PodSecurityPolicyHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync PodSecurityPolicyHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle PodSecurityPolicyLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle PodSecurityPolicyLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync PodSecurityPolicyHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync PodSecurityPolicyHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle PodSecurityPolicyLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle PodSecurityPolicyLifecycle) }
type PodSecurityPolicyLifecycle ¶
type PodSecurityPolicyLifecycle interface { Create(obj *v1beta1.PodSecurityPolicy) (runtime.Object, error) Remove(obj *v1beta1.PodSecurityPolicy) (runtime.Object, error) Updated(obj *v1beta1.PodSecurityPolicy) (runtime.Object, error) }
type PodSecurityPolicyList ¶
type PodSecurityPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1beta1.PodSecurityPolicy `json:"items"` }
func (*PodSecurityPolicyList) DeepCopy ¶
func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList.
func (*PodSecurityPolicyList) DeepCopyInto ¶
func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSecurityPolicyList) DeepCopyObject ¶
func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodSecurityPolicyLister ¶
type PodSecurityPolicyLister interface { List(namespace string, selector labels.Selector) (ret []*v1beta1.PodSecurityPolicy, err error) Get(namespace, name string) (*v1beta1.PodSecurityPolicy, error) }