v1alpha1

package
v0.0.4-rc4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GroupName = "certmanager.k8s.io"
	Version   = "v1alpha1"
)

Variables

View Source
var (
	CertificateGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Certificate",
	}
	CertificateResource = metav1.APIResource{
		Name:         "certificates",
		SingularName: "certificate",
		Namespaced:   true,

		Kind: CertificateGroupVersionKind.Kind,
	}
)
View Source
var (
	ClusterIssuerGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ClusterIssuer",
	}
	ClusterIssuerResource = metav1.APIResource{
		Name:         "clusterissuers",
		SingularName: "clusterissuer",
		Namespaced:   false,
		Kind:         ClusterIssuerGroupVersionKind.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 NewCertificate

func NewCertificate(namespace, name string, obj v1alpha1.Certificate) *v1alpha1.Certificate

func NewClusterIssuer

func NewClusterIssuer(namespace, name string, obj v1alpha1.ClusterIssuer) *v1alpha1.ClusterIssuer

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CertificateChangeHandlerFunc

type CertificateChangeHandlerFunc func(obj *v1alpha1.Certificate) (runtime.Object, error)

type CertificateClient

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

	Cache() CertificateClientCache

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

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

type CertificateClientCache

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

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

type CertificateController

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

type CertificateHandlerFunc

type CertificateHandlerFunc func(key string, obj *v1alpha1.Certificate) (runtime.Object, error)

func NewCertificateLifecycleAdapter

func NewCertificateLifecycleAdapter(name string, clusterScoped bool, client CertificateInterface, l CertificateLifecycle) CertificateHandlerFunc

type CertificateIndexer

type CertificateIndexer func(obj *v1alpha1.Certificate) ([]string, error)

type CertificateInterface

type CertificateInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha1.Certificate) (*v1alpha1.Certificate, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha1.Certificate, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha1.Certificate, error)
	Update(*v1alpha1.Certificate) (*v1alpha1.Certificate, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*CertificateList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() CertificateController
	AddHandler(ctx context.Context, name string, sync CertificateHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle CertificateLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync CertificateHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle CertificateLifecycle)
}

type CertificateLifecycle

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

type CertificateList

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

func (*CertificateList) DeepCopy

func (in *CertificateList) DeepCopy() *CertificateList

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

func (*CertificateList) DeepCopyInto

func (in *CertificateList) DeepCopyInto(out *CertificateList)

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

func (*CertificateList) DeepCopyObject

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

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

type CertificateLister

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

type CertificatesGetter

type CertificatesGetter interface {
	Certificates(namespace string) CertificateInterface
}

type Client

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

func (*Client) Certificates

func (c *Client) Certificates(namespace string) CertificateInterface

func (*Client) ClusterIssuers

func (c *Client) ClusterIssuers(namespace string) ClusterIssuerInterface

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

	ClusterIssuer ClusterIssuerClient
	Certificate   CertificateClient
}

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 ClusterIssuerChangeHandlerFunc

type ClusterIssuerChangeHandlerFunc func(obj *v1alpha1.ClusterIssuer) (runtime.Object, error)

type ClusterIssuerClient

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

	Cache() ClusterIssuerClientCache

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

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

type ClusterIssuerClientCache

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

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

type ClusterIssuerController

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

type ClusterIssuerHandlerFunc

type ClusterIssuerHandlerFunc func(key string, obj *v1alpha1.ClusterIssuer) (runtime.Object, error)

func NewClusterIssuerLifecycleAdapter

func NewClusterIssuerLifecycleAdapter(name string, clusterScoped bool, client ClusterIssuerInterface, l ClusterIssuerLifecycle) ClusterIssuerHandlerFunc

type ClusterIssuerIndexer

type ClusterIssuerIndexer func(obj *v1alpha1.ClusterIssuer) ([]string, error)

type ClusterIssuerInterface

type ClusterIssuerInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*v1alpha1.ClusterIssuer) (*v1alpha1.ClusterIssuer, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha1.ClusterIssuer, error)
	Get(name string, opts metav1.GetOptions) (*v1alpha1.ClusterIssuer, error)
	Update(*v1alpha1.ClusterIssuer) (*v1alpha1.ClusterIssuer, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ClusterIssuerList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ClusterIssuerController
	AddHandler(ctx context.Context, name string, sync ClusterIssuerHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ClusterIssuerLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ClusterIssuerHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ClusterIssuerLifecycle)
}

type ClusterIssuerLifecycle

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

type ClusterIssuerList

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

func (*ClusterIssuerList) DeepCopy

func (in *ClusterIssuerList) DeepCopy() *ClusterIssuerList

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

func (*ClusterIssuerList) DeepCopyInto

func (in *ClusterIssuerList) DeepCopyInto(out *ClusterIssuerList)

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

func (*ClusterIssuerList) DeepCopyObject

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

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

type ClusterIssuerLister

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

type ClusterIssuersGetter

type ClusterIssuersGetter interface {
	ClusterIssuers(namespace string) ClusterIssuerInterface
}

type Interface

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

	ClusterIssuersGetter
	CertificatesGetter
}

func From

func From(ctx context.Context) Interface

func NewForConfig

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

Jump to

Keyboard shortcuts

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