Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Addon
- type AddonChangeHandlerFunc
- type AddonClient
- type AddonClientCache
- type AddonController
- type AddonHandlerFunc
- type AddonIndexer
- type AddonInterface
- type AddonLifecycle
- type AddonList
- type AddonLister
- type AddonSpec
- type AddonStatus
- type AddonsGetter
- type Client
- func (c *Client) Addons(namespace string) AddonInterface
- func (c *Client) HelmCharts(namespace string) HelmChartInterface
- func (c *Client) ListenerConfigs(namespace string) ListenerConfigInterface
- 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 HelmChart
- type HelmChartChangeHandlerFunc
- type HelmChartClient
- type HelmChartClientCache
- type HelmChartController
- type HelmChartHandlerFunc
- type HelmChartIndexer
- type HelmChartInterface
- type HelmChartLifecycle
- type HelmChartList
- type HelmChartLister
- type HelmChartSpec
- type HelmChartStatus
- type HelmChartsGetter
- type Interface
- type ListenerConfig
- type ListenerConfigChangeHandlerFunc
- type ListenerConfigClient
- type ListenerConfigClientCache
- type ListenerConfigController
- type ListenerConfigHandlerFunc
- type ListenerConfigIndexer
- type ListenerConfigInterface
- type ListenerConfigLifecycle
- type ListenerConfigList
- type ListenerConfigLister
- type ListenerConfigsGetter
Constants ¶
const ( GroupName = "k3s.cattle.io" Version = "v1" )
Variables ¶
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{}) )
var ( AddonGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Addon", } AddonResource = metav1.APIResource{ Name: "addons", SingularName: "addon", Namespaced: true, Kind: AddonGroupVersionKind.Kind, } )
var ( HelmChartGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "HelmChart", } HelmChartResource = metav1.APIResource{ Name: "helmcharts", SingularName: "helmchart", Namespaced: true, Kind: HelmChartGroupVersionKind.Kind, } )
var ( ListenerConfigGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ListenerConfig", } ListenerConfigResource = metav1.APIResource{ Name: "listenerconfigs", SingularName: "listenerconfig", Namespaced: true, Kind: ListenerConfigGroupVersionKind.Kind, } )
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 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 (*Addon) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Addon.
func (*Addon) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Addon) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 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 ¶
func NewAddonLifecycleAdapter ¶
func NewAddonLifecycleAdapter(name string, clusterScoped bool, client AddonInterface, l AddonLifecycle) AddonHandlerFunc
type AddonIndexer ¶
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 AddonList ¶
type AddonList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Addon }
func (*AddonList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonList.
func (*AddonList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddonList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonLister ¶
type AddonSpec ¶
type AddonSpec struct { Source string `json:"source,omitempty"` Checksum string `json:"checksum,omitempty"` }
func (*AddonSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonSpec.
func (*AddonSpec) DeepCopyInto ¶
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 ¶
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 ¶
type Clients ¶
type Clients struct { Interface Interface Addon AddonClient HelmChart HelmChartClient ListenerConfig ListenerConfigClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
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 (*HelmChart) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChart.
func (*HelmChart) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelmChart) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 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 ¶
func NewHelmChartLifecycleAdapter ¶
func NewHelmChartLifecycleAdapter(name string, clusterScoped bool, client HelmChartInterface, l HelmChartLifecycle) HelmChartHandlerFunc
type HelmChartIndexer ¶
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 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 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 ¶
type Interface interface { RESTClient() rest.Interface controller.Starter AddonsGetter HelmChartsGetter ListenerConfigsGetter }
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
}
Source Files ¶
- schema.go
- types.go
- zz_generated_addon_controller.go
- zz_generated_addon_lifecycle_adapter.go
- zz_generated_deepcopy.go
- zz_generated_helm_chart_controller.go
- zz_generated_helm_chart_lifecycle_adapter.go
- zz_generated_k8s_client.go
- zz_generated_listener_config_controller.go
- zz_generated_listener_config_lifecycle_adapter.go
- zz_generated_scheme.go