v1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "k3s.cattle.io"
	Version   = "v1"
)

Variables

View Source
var (
	APIVersion = types.APIVersion{
		Version: "v1",
		Group:   "k3s.cattle.io",
		Path:    "/v1-k3s",
	}

	Schemas = factory.Schemas(&APIVersion).
			MustImport(&APIVersion, Addon{}).
			MustImport(&APIVersion, HelmChart{}).
			MustImport(&APIVersion, ListenerConfig{})
)
View Source
var (
	AddonGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Addon",
	}
	AddonResource = metav1.APIResource{
		Name:         "addons",
		SingularName: "addon",
		Namespaced:   true,

		Kind: AddonGroupVersionKind.Kind,
	}
)
View Source
var (
	HelmChartGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "HelmChart",
	}
	HelmChartResource = metav1.APIResource{
		Name:         "helmcharts",
		SingularName: "helmchart",
		Namespaced:   true,

		Kind: HelmChartGroupVersionKind.Kind,
	}
)
View Source
var (
	ListenerConfigGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ListenerConfig",
	}
	ListenerConfigResource = metav1.APIResource{
		Name:         "listenerconfigs",
		SingularName: "listenerconfig",
		Namespaced:   true,

		Kind: ListenerConfigGroupVersionKind.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 Addon

type Addon struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AddonSpec   `json:"spec,omitempty"`
	Status AddonStatus `json:"status,omitempty"`
}

func NewAddon

func NewAddon(namespace, name string, obj Addon) *Addon

func (*Addon) DeepCopy

func (in *Addon) DeepCopy() *Addon

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

func (*Addon) DeepCopyInto

func (in *Addon) DeepCopyInto(out *Addon)

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

func (*Addon) DeepCopyObject

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

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

type AddonChangeHandlerFunc

type AddonChangeHandlerFunc func(obj *Addon) (runtime.Object, error)

type AddonClient

type AddonClient interface {
	Create(*Addon) (*Addon, error)
	Get(namespace, name string, opts metav1.GetOptions) (*Addon, error)
	Update(*Addon) (*Addon, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*AddonList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() AddonClientCache

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

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

type AddonClientCache

type AddonClientCache interface {
	Get(namespace, name string) (*Addon, error)
	List(namespace string, selector labels.Selector) ([]*Addon, error)

	Index(name string, indexer AddonIndexer)
	GetIndexed(name, key string) ([]*Addon, error)
}

type AddonController

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

type AddonHandlerFunc

type AddonHandlerFunc func(key string, obj *Addon) (runtime.Object, error)

func NewAddonLifecycleAdapter

func NewAddonLifecycleAdapter(name string, clusterScoped bool, client AddonInterface, l AddonLifecycle) AddonHandlerFunc

type AddonIndexer

type AddonIndexer func(obj *Addon) ([]string, error)

type AddonInterface

type AddonInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Addon) (*Addon, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Addon, error)
	Get(name string, opts metav1.GetOptions) (*Addon, error)
	Update(*Addon) (*Addon, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*AddonList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() AddonController
	AddHandler(ctx context.Context, name string, sync AddonHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle AddonLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync AddonHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle AddonLifecycle)
}

type AddonLifecycle

type AddonLifecycle interface {
	Create(obj *Addon) (runtime.Object, error)
	Remove(obj *Addon) (runtime.Object, error)
	Updated(obj *Addon) (runtime.Object, error)
}

type AddonList

type AddonList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Addon
}

func (*AddonList) DeepCopy

func (in *AddonList) DeepCopy() *AddonList

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

func (*AddonList) DeepCopyInto

func (in *AddonList) DeepCopyInto(out *AddonList)

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

func (*AddonList) DeepCopyObject

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

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

type AddonLister

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

type AddonSpec

type AddonSpec struct {
	Source   string `json:"source,omitempty"`
	Checksum string `json:"checksum,omitempty"`
}

func (*AddonSpec) DeepCopy

func (in *AddonSpec) DeepCopy() *AddonSpec

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

func (*AddonSpec) DeepCopyInto

func (in *AddonSpec) DeepCopyInto(out *AddonSpec)

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

type AddonStatus

type AddonStatus struct {
	GVKs []schema.GroupVersionKind `json:"gvks,omitempty"`
}

func (*AddonStatus) DeepCopy

func (in *AddonStatus) DeepCopy() *AddonStatus

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

func (*AddonStatus) DeepCopyInto

func (in *AddonStatus) DeepCopyInto(out *AddonStatus)

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

type AddonsGetter

type AddonsGetter interface {
	Addons(namespace string) AddonInterface
}

type Client

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

func (*Client) Addons

func (c *Client) Addons(namespace string) AddonInterface

func (*Client) HelmCharts

func (c *Client) HelmCharts(namespace string) HelmChartInterface

func (*Client) ListenerConfigs

func (c *Client) ListenerConfigs(namespace string) ListenerConfigInterface

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

	Addon          AddonClient
	HelmChart      HelmChartClient
	ListenerConfig ListenerConfigClient
}

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 HelmChart

type HelmChart struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   HelmChartSpec   `json:"spec,omitempty"`
	Status HelmChartStatus `json:"status,omitempty"`
}

func NewHelmChart

func NewHelmChart(namespace, name string, obj HelmChart) *HelmChart

func (*HelmChart) DeepCopy

func (in *HelmChart) DeepCopy() *HelmChart

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

func (*HelmChart) DeepCopyInto

func (in *HelmChart) DeepCopyInto(out *HelmChart)

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

func (*HelmChart) DeepCopyObject

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

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

type HelmChartChangeHandlerFunc

type HelmChartChangeHandlerFunc func(obj *HelmChart) (runtime.Object, error)

type HelmChartClient

type HelmChartClient interface {
	Create(*HelmChart) (*HelmChart, error)
	Get(namespace, name string, opts metav1.GetOptions) (*HelmChart, error)
	Update(*HelmChart) (*HelmChart, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*HelmChartList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() HelmChartClientCache

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

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

type HelmChartClientCache

type HelmChartClientCache interface {
	Get(namespace, name string) (*HelmChart, error)
	List(namespace string, selector labels.Selector) ([]*HelmChart, error)

	Index(name string, indexer HelmChartIndexer)
	GetIndexed(name, key string) ([]*HelmChart, error)
}

type HelmChartController

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

type HelmChartHandlerFunc

type HelmChartHandlerFunc func(key string, obj *HelmChart) (runtime.Object, error)

func NewHelmChartLifecycleAdapter

func NewHelmChartLifecycleAdapter(name string, clusterScoped bool, client HelmChartInterface, l HelmChartLifecycle) HelmChartHandlerFunc

type HelmChartIndexer

type HelmChartIndexer func(obj *HelmChart) ([]string, error)

type HelmChartInterface

type HelmChartInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*HelmChart) (*HelmChart, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*HelmChart, error)
	Get(name string, opts metav1.GetOptions) (*HelmChart, error)
	Update(*HelmChart) (*HelmChart, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*HelmChartList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() HelmChartController
	AddHandler(ctx context.Context, name string, sync HelmChartHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle HelmChartLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync HelmChartHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle HelmChartLifecycle)
}

type HelmChartLifecycle

type HelmChartLifecycle interface {
	Create(obj *HelmChart) (runtime.Object, error)
	Remove(obj *HelmChart) (runtime.Object, error)
	Updated(obj *HelmChart) (runtime.Object, error)
}

type HelmChartList

type HelmChartList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HelmChart
}

func (*HelmChartList) DeepCopy

func (in *HelmChartList) DeepCopy() *HelmChartList

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

func (*HelmChartList) DeepCopyInto

func (in *HelmChartList) DeepCopyInto(out *HelmChartList)

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

func (*HelmChartList) DeepCopyObject

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

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

type HelmChartLister

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

type HelmChartSpec

type HelmChartSpec struct {
	TargetNamespace string                        `json:"targetNamespace,omitempty"`
	Chart           string                        `json:"chart,omitempty"`
	Version         string                        `json:"version,omitempty"`
	Repo            string                        `json:"repo,omitempty"`
	Set             map[string]intstr.IntOrString `json:"set,omitempty"`
	ValuesContent   string                        `json:"valuesContent,omitempty"`
}

func (*HelmChartSpec) DeepCopy

func (in *HelmChartSpec) DeepCopy() *HelmChartSpec

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

func (*HelmChartSpec) DeepCopyInto

func (in *HelmChartSpec) DeepCopyInto(out *HelmChartSpec)

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

type HelmChartStatus

type HelmChartStatus struct {
	JobName string `json:"jobName,omitempty"`
}

func (*HelmChartStatus) DeepCopy

func (in *HelmChartStatus) DeepCopy() *HelmChartStatus

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

func (*HelmChartStatus) DeepCopyInto

func (in *HelmChartStatus) DeepCopyInto(out *HelmChartStatus)

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

type HelmChartsGetter

type HelmChartsGetter interface {
	HelmCharts(namespace string) HelmChartInterface
}

type Interface

func From

func From(ctx context.Context) Interface

func NewForConfig

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

type ListenerConfig

type ListenerConfig struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Status dynamiclistener.ListenerStatus `json:"status,omitempty"`
}

func NewListenerConfig

func NewListenerConfig(namespace, name string, obj ListenerConfig) *ListenerConfig

func (*ListenerConfig) DeepCopy

func (in *ListenerConfig) DeepCopy() *ListenerConfig

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

func (*ListenerConfig) DeepCopyInto

func (in *ListenerConfig) DeepCopyInto(out *ListenerConfig)

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

func (*ListenerConfig) DeepCopyObject

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

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

type ListenerConfigChangeHandlerFunc

type ListenerConfigChangeHandlerFunc func(obj *ListenerConfig) (runtime.Object, error)

type ListenerConfigClient

type ListenerConfigClient interface {
	Create(*ListenerConfig) (*ListenerConfig, error)
	Get(namespace, name string, opts metav1.GetOptions) (*ListenerConfig, error)
	Update(*ListenerConfig) (*ListenerConfig, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*ListenerConfigList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() ListenerConfigClientCache

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

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

type ListenerConfigClientCache

type ListenerConfigClientCache interface {
	Get(namespace, name string) (*ListenerConfig, error)
	List(namespace string, selector labels.Selector) ([]*ListenerConfig, error)

	Index(name string, indexer ListenerConfigIndexer)
	GetIndexed(name, key string) ([]*ListenerConfig, error)
}

type ListenerConfigController

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

type ListenerConfigHandlerFunc

type ListenerConfigHandlerFunc func(key string, obj *ListenerConfig) (runtime.Object, error)

func NewListenerConfigLifecycleAdapter

func NewListenerConfigLifecycleAdapter(name string, clusterScoped bool, client ListenerConfigInterface, l ListenerConfigLifecycle) ListenerConfigHandlerFunc

type ListenerConfigIndexer

type ListenerConfigIndexer func(obj *ListenerConfig) ([]string, error)

type ListenerConfigInterface

type ListenerConfigInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*ListenerConfig) (*ListenerConfig, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ListenerConfig, error)
	Get(name string, opts metav1.GetOptions) (*ListenerConfig, error)
	Update(*ListenerConfig) (*ListenerConfig, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ListenerConfigList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ListenerConfigController
	AddHandler(ctx context.Context, name string, sync ListenerConfigHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ListenerConfigLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ListenerConfigHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ListenerConfigLifecycle)
}

type ListenerConfigLifecycle

type ListenerConfigLifecycle interface {
	Create(obj *ListenerConfig) (runtime.Object, error)
	Remove(obj *ListenerConfig) (runtime.Object, error)
	Updated(obj *ListenerConfig) (runtime.Object, error)
}

type ListenerConfigList

type ListenerConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ListenerConfig
}

func (*ListenerConfigList) DeepCopy

func (in *ListenerConfigList) DeepCopy() *ListenerConfigList

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

func (*ListenerConfigList) DeepCopyInto

func (in *ListenerConfigList) DeepCopyInto(out *ListenerConfigList)

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

func (*ListenerConfigList) DeepCopyObject

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

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

type ListenerConfigLister

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

type ListenerConfigsGetter

type ListenerConfigsGetter interface {
	ListenerConfigs(namespace string) ListenerConfigInterface
}

Jump to

Keyboard shortcuts

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