v1

package
v0.0.4-rc5 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

View Source
var (
	FeatureGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Feature",
	}
	FeatureResource = metav1.APIResource{
		Name:         "features",
		SingularName: "feature",
		Namespaced:   true,

		Kind: FeatureGroupVersionKind.Kind,
	}
)
View Source
var (
	ListenConfigGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ListenConfig",
	}
	ListenConfigResource = metav1.APIResource{
		Name:         "listenconfigs",
		SingularName: "listenconfig",
		Namespaced:   false,
		Kind:         ListenConfigGroupVersionKind.Kind,
	}
)
View Source
var (
	PublicDomainGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "PublicDomain",
	}
	PublicDomainResource = metav1.APIResource{
		Name:         "publicdomains",
		SingularName: "publicdomain",
		Namespaced:   true,

		Kind: PublicDomainGroupVersionKind.Kind,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	SettingGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Setting",
	}
	SettingResource = metav1.APIResource{
		Name:         "settings",
		SingularName: "setting",
		Namespaced:   false,
		Kind:         SettingGroupVersionKind.Kind,
	}
)
View Source
var (
	FeatureConditionEnabled = condition.Cond("Enabled")
)
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 Client

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

func (*Client) Features

func (c *Client) Features(namespace string) FeatureInterface

func (*Client) ListenConfigs

func (c *Client) ListenConfigs(namespace string) ListenConfigInterface

func (*Client) PublicDomains

func (c *Client) PublicDomains(namespace string) PublicDomainInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) Settings

func (c *Client) Settings(namespace string) SettingInterface

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

	ListenConfig ListenConfigClient
	Setting      SettingClient
	PublicDomain PublicDomainClient
	Feature      FeatureClient
}

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 Feature

type Feature struct {
	types.Namespaced

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

	Spec   FeatureSpec   `json:"spec,omitempty"`
	Status FeatureStatus `json:"status,omitempty"`
}

func NewFeature

func NewFeature(namespace, name string, obj Feature) *Feature

func (*Feature) DeepCopy

func (in *Feature) DeepCopy() *Feature

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

func (*Feature) DeepCopyInto

func (in *Feature) DeepCopyInto(out *Feature)

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

func (*Feature) DeepCopyObject

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

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

type FeatureChangeHandlerFunc

type FeatureChangeHandlerFunc func(obj *Feature) (runtime.Object, error)

type FeatureClient

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

	Cache() FeatureClientCache

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

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

type FeatureClientCache

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

	Index(name string, indexer FeatureIndexer)
	GetIndexed(name, key string) ([]*Feature, error)
}

type FeatureController

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

type FeatureHandlerFunc

type FeatureHandlerFunc func(key string, obj *Feature) (runtime.Object, error)

func NewFeatureLifecycleAdapter

func NewFeatureLifecycleAdapter(name string, clusterScoped bool, client FeatureInterface, l FeatureLifecycle) FeatureHandlerFunc

type FeatureIndexer

type FeatureIndexer func(obj *Feature) ([]string, error)

type FeatureInterface

type FeatureInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Feature) (*Feature, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Feature, error)
	Get(name string, opts metav1.GetOptions) (*Feature, error)
	Update(*Feature) (*Feature, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*FeatureList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() FeatureController
	AddHandler(ctx context.Context, name string, sync FeatureHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle FeatureLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync FeatureHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle FeatureLifecycle)
}

type FeatureLifecycle

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

type FeatureList

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

func (*FeatureList) DeepCopy

func (in *FeatureList) DeepCopy() *FeatureList

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

func (*FeatureList) DeepCopyInto

func (in *FeatureList) DeepCopyInto(out *FeatureList)

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

func (*FeatureList) DeepCopyObject

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

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

type FeatureLister

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

type FeatureSpec

type FeatureSpec struct {
	Description string            `json:"description,omitempty"`
	Enabled     bool              `json:"enable,omitempty"`
	Questions   []v3.Question     `json:"questions,omitempty"`
	Answers     map[string]string `json:"answers,omitempty"`
	Requires    []string          `json:"features,omitempty"`
}

func (*FeatureSpec) DeepCopy

func (in *FeatureSpec) DeepCopy() *FeatureSpec

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

func (*FeatureSpec) DeepCopyInto

func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec)

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

type FeatureStatus

type FeatureStatus struct {
	Conditions []condition.GenericCondition `json:"conditions,omitempty"`
}

func (*FeatureStatus) DeepCopy

func (in *FeatureStatus) DeepCopy() *FeatureStatus

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

func (*FeatureStatus) DeepCopyInto

func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus)

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

type FeaturesGetter

type FeaturesGetter interface {
	Features(namespace string) FeatureInterface
}

type Interface

func From

func From(ctx context.Context) Interface

func NewForConfig

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

type ListenConfig

type ListenConfig struct {
	v3.ListenConfig
}

func NewListenConfig

func NewListenConfig(namespace, name string, obj ListenConfig) *ListenConfig

func (*ListenConfig) DeepCopy

func (in *ListenConfig) DeepCopy() *ListenConfig

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

func (*ListenConfig) DeepCopyInto

func (in *ListenConfig) DeepCopyInto(out *ListenConfig)

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

func (*ListenConfig) DeepCopyObject

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

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

type ListenConfigChangeHandlerFunc

type ListenConfigChangeHandlerFunc func(obj *ListenConfig) (runtime.Object, error)

type ListenConfigClient

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

	Cache() ListenConfigClientCache

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

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

type ListenConfigClientCache

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

	Index(name string, indexer ListenConfigIndexer)
	GetIndexed(name, key string) ([]*ListenConfig, error)
}

type ListenConfigController

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

type ListenConfigHandlerFunc

type ListenConfigHandlerFunc func(key string, obj *ListenConfig) (runtime.Object, error)

func NewListenConfigLifecycleAdapter

func NewListenConfigLifecycleAdapter(name string, clusterScoped bool, client ListenConfigInterface, l ListenConfigLifecycle) ListenConfigHandlerFunc

type ListenConfigIndexer

type ListenConfigIndexer func(obj *ListenConfig) ([]string, error)

type ListenConfigInterface

type ListenConfigInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*ListenConfig) (*ListenConfig, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ListenConfig, error)
	Get(name string, opts metav1.GetOptions) (*ListenConfig, error)
	Update(*ListenConfig) (*ListenConfig, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ListenConfigList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ListenConfigController
	AddHandler(ctx context.Context, name string, sync ListenConfigHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ListenConfigLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ListenConfigHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ListenConfigLifecycle)
}

type ListenConfigLifecycle

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

type ListenConfigList

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

func (*ListenConfigList) DeepCopy

func (in *ListenConfigList) DeepCopy() *ListenConfigList

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

func (*ListenConfigList) DeepCopyInto

func (in *ListenConfigList) DeepCopyInto(out *ListenConfigList)

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

func (*ListenConfigList) DeepCopyObject

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

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

type ListenConfigLister

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

type ListenConfigsGetter

type ListenConfigsGetter interface {
	ListenConfigs(namespace string) ListenConfigInterface
}

type PublicDomain

type PublicDomain struct {
	types.Namespaced

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

	Spec PublicDomainSpec `json:"spec,inline"`
}

func NewPublicDomain

func NewPublicDomain(namespace, name string, obj PublicDomain) *PublicDomain

func (*PublicDomain) DeepCopy

func (in *PublicDomain) DeepCopy() *PublicDomain

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

func (*PublicDomain) DeepCopyInto

func (in *PublicDomain) DeepCopyInto(out *PublicDomain)

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

func (*PublicDomain) DeepCopyObject

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

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

type PublicDomainChangeHandlerFunc

type PublicDomainChangeHandlerFunc func(obj *PublicDomain) (runtime.Object, error)

type PublicDomainClient

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

	Cache() PublicDomainClientCache

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

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

type PublicDomainClientCache

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

	Index(name string, indexer PublicDomainIndexer)
	GetIndexed(name, key string) ([]*PublicDomain, error)
}

type PublicDomainController

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

type PublicDomainHandlerFunc

type PublicDomainHandlerFunc func(key string, obj *PublicDomain) (runtime.Object, error)

func NewPublicDomainLifecycleAdapter

func NewPublicDomainLifecycleAdapter(name string, clusterScoped bool, client PublicDomainInterface, l PublicDomainLifecycle) PublicDomainHandlerFunc

type PublicDomainIndexer

type PublicDomainIndexer func(obj *PublicDomain) ([]string, error)

type PublicDomainInterface

type PublicDomainInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*PublicDomain) (*PublicDomain, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*PublicDomain, error)
	Get(name string, opts metav1.GetOptions) (*PublicDomain, error)
	Update(*PublicDomain) (*PublicDomain, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*PublicDomainList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() PublicDomainController
	AddHandler(ctx context.Context, name string, sync PublicDomainHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle PublicDomainLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync PublicDomainHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle PublicDomainLifecycle)
}

type PublicDomainLifecycle

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

type PublicDomainList

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

func (*PublicDomainList) DeepCopy

func (in *PublicDomainList) DeepCopy() *PublicDomainList

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

func (*PublicDomainList) DeepCopyInto

func (in *PublicDomainList) DeepCopyInto(out *PublicDomainList)

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

func (*PublicDomainList) DeepCopyObject

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

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

type PublicDomainLister

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

type PublicDomainSpec

type PublicDomainSpec struct {
	TargetName        string `json:"targetName,omitempty"`
	TargetStackName   string `json:"targetStackName,omitempty"`
	TargetProjectName string `json:"targetProjectName,omitempty"`
	DomainName        string `json:"domainName,omitempty"`
}

func (*PublicDomainSpec) DeepCopy

func (in *PublicDomainSpec) DeepCopy() *PublicDomainSpec

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

func (*PublicDomainSpec) DeepCopyInto

func (in *PublicDomainSpec) DeepCopyInto(out *PublicDomainSpec)

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

type PublicDomainsGetter

type PublicDomainsGetter interface {
	PublicDomains(namespace string) PublicDomainInterface
}

type Setting

type Setting struct {
	v3.Setting
}

func NewSetting

func NewSetting(namespace, name string, obj Setting) *Setting

func (*Setting) DeepCopy

func (in *Setting) DeepCopy() *Setting

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

func (*Setting) DeepCopyInto

func (in *Setting) DeepCopyInto(out *Setting)

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

func (*Setting) DeepCopyObject

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

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

type SettingChangeHandlerFunc

type SettingChangeHandlerFunc func(obj *Setting) (runtime.Object, error)

type SettingClient

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

	Cache() SettingClientCache

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

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

type SettingClientCache

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

	Index(name string, indexer SettingIndexer)
	GetIndexed(name, key string) ([]*Setting, error)
}

type SettingController

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

type SettingHandlerFunc

type SettingHandlerFunc func(key string, obj *Setting) (runtime.Object, error)

func NewSettingLifecycleAdapter

func NewSettingLifecycleAdapter(name string, clusterScoped bool, client SettingInterface, l SettingLifecycle) SettingHandlerFunc

type SettingIndexer

type SettingIndexer func(obj *Setting) ([]string, error)

type SettingInterface

type SettingInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Setting) (*Setting, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Setting, error)
	Get(name string, opts metav1.GetOptions) (*Setting, error)
	Update(*Setting) (*Setting, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*SettingList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() SettingController
	AddHandler(ctx context.Context, name string, sync SettingHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle SettingLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync SettingHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle SettingLifecycle)
}

type SettingLifecycle

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

type SettingList

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

func (*SettingList) DeepCopy

func (in *SettingList) DeepCopy() *SettingList

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

func (*SettingList) DeepCopyInto

func (in *SettingList) DeepCopyInto(out *SettingList)

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

func (*SettingList) DeepCopyObject

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

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

type SettingLister

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

type SettingsGetter

type SettingsGetter interface {
	Settings(namespace string) SettingInterface
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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