v1

package
v0.0.0-...-10a32ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "apiregistration.k8s.io"
	Version   = "v1"
)

Variables

View Source
var (
	APIServiceGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "APIService",
	}
	APIServiceResource = metav1.APIResource{
		Name:         "apiservices",
		SingularName: "apiservice",
		Namespaced:   false,
		Kind:         APIServiceGroupVersionKind.Kind,
	}

	APIServiceGroupVersionResource = schema.GroupVersionResource{
		Group:    GroupName,
		Version:  Version,
		Resource: "apiservices",
	}
)
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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func NewAPIService

func NewAPIService(namespace, name string, obj v1.APIService) *v1.APIService

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type APIServiceChangeHandlerFunc

type APIServiceChangeHandlerFunc func(obj *v1.APIService) (runtime.Object, error)

type APIServiceController

type APIServiceController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() APIServiceLister
	AddHandler(ctx context.Context, name string, handler APIServiceHandlerFunc)
	AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync APIServiceHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler APIServiceHandlerFunc)
	AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler APIServiceHandlerFunc)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, after time.Duration)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type APIServiceHandlerFunc

type APIServiceHandlerFunc func(key string, obj *v1.APIService) (runtime.Object, error)

func NewAPIServiceLifecycleAdapter

func NewAPIServiceLifecycleAdapter(name string, clusterScoped bool, client APIServiceInterface, l APIServiceLifecycle) APIServiceHandlerFunc

type APIServiceInterface

type APIServiceInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1.APIService) (*v1.APIService, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.APIService, error)
	Get(name string, opts metav1.GetOptions) (*v1.APIService, error)
	Update(*v1.APIService) (*v1.APIService, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*APIServiceList, error)
	ListNamespaced(namespace string, opts metav1.ListOptions) (*APIServiceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() APIServiceController
	AddHandler(ctx context.Context, name string, sync APIServiceHandlerFunc)
	AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync APIServiceHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle APIServiceLifecycle)
	AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle APIServiceLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync APIServiceHandlerFunc)
	AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync APIServiceHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle APIServiceLifecycle)
	AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle APIServiceLifecycle)
}

type APIServiceLifecycle

type APIServiceLifecycle interface {
	Create(obj *v1.APIService) (runtime.Object, error)
	Remove(obj *v1.APIService) (runtime.Object, error)
	Updated(obj *v1.APIService) (runtime.Object, error)
}

type APIServiceList

type APIServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1.APIService `json:"items"`
}

func (*APIServiceList) DeepCopy

func (in *APIServiceList) DeepCopy() *APIServiceList

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

func (*APIServiceList) DeepCopyInto

func (in *APIServiceList) DeepCopyInto(out *APIServiceList)

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

func (*APIServiceList) DeepCopyObject

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

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

type APIServiceLister

type APIServiceLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1.APIService, err error)
	Get(namespace, name string) (*v1.APIService, error)
}

type APIServicesGetter

type APIServicesGetter interface {
	APIServices(namespace string) APIServiceInterface
}

type Client

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

func (*Client) APIServices

func (c *Client) APIServices(namespace string) APIServiceInterface

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 Interface

type Interface interface {
	RESTClient() rest.Interface
	controller.Starter

	APIServicesGetter
}

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