v1

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: 33 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	ReadVerbs = []string{
		"get",
		"list",
		"watch",
	}
	WriteVerbs = []string{
		"create",
		"delete",
		"get",
		"list",
		"patch",
		"update",
		"watch",
	}
)
View Source
var (
	StackConditionDefined  = condition.Cond("Defined")
	StackConditionDeployed = condition.Cond("Deployed")
)
View Source
var (
	ConfigGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Config",
	}
	ConfigResource = metav1.APIResource{
		Name:         "configs",
		SingularName: "config",
		Namespaced:   true,

		Kind: ConfigGroupVersionKind.Kind,
	}
)
View Source
var (
	ExternalServiceGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ExternalService",
	}
	ExternalServiceResource = metav1.APIResource{
		Name:         "externalservices",
		SingularName: "externalservice",
		Namespaced:   true,

		Kind: ExternalServiceGroupVersionKind.Kind,
	}
)
View Source
var (
	RouteSetGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "RouteSet",
	}
	RouteSetResource = metav1.APIResource{
		Name:         "routesets",
		SingularName: "routeset",
		Namespaced:   true,

		Kind: RouteSetGroupVersionKind.Kind,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	ServiceGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Service",
	}
	ServiceResource = metav1.APIResource{
		Name:         "services",
		SingularName: "service",
		Namespaced:   true,

		Kind: ServiceGroupVersionKind.Kind,
	}
)
View Source
var (
	StackGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Stack",
	}
	StackResource = metav1.APIResource{
		Name:         "stacks",
		SingularName: "stack",
		Namespaced:   true,

		Kind: StackGroupVersionKind.Kind,
	}
)
View Source
var (
	VolumeGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Volume",
	}
	VolumeResource = metav1.APIResource{
		Name:         "volumes",
		SingularName: "volume",
		Namespaced:   true,

		Kind: VolumeGroupVersionKind.Kind,
	}
)
View Source
var (
	PendingCondition = condition.Cond("Pending")
)

Propagations is the list of all valid mount propagations

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 Abort

type Abort struct {
	HTTPStatus  int    `json:"httpStatus,omitempty"`
	HTTP2Status string `json:"http2Status,omitempty"`
	GRPCStatus  string `json:"grpcStatus,omitempty"`
}

func (*Abort) DeepCopy

func (in *Abort) DeepCopy() *Abort

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

func (*Abort) DeepCopyInto

func (in *Abort) DeepCopyInto(out *Abort)

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

type AutoscaleConfig

type AutoscaleConfig struct {
	EnableAutoScale      bool `json:"enableAutoScale,omitempty"`
	ContainerConcurrency int  `json:"containerConcurrency,omitempty"`
	MinScale             int  `json:"minScale,omitempty"`
	MaxScale             int  `json:"maxScale,omitempty"`
}

func (*AutoscaleConfig) DeepCopy

func (in *AutoscaleConfig) DeepCopy() *AutoscaleConfig

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

func (*AutoscaleConfig) DeepCopyInto

func (in *AutoscaleConfig) DeepCopyInto(out *AutoscaleConfig)

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

type BindOptions

type BindOptions struct {
	Propagation Propagation `json:"propagation,omitempty"`
}

BindOptions defines options specific to mounts of type "bind".

func (*BindOptions) DeepCopy

func (in *BindOptions) DeepCopy() *BindOptions

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

func (*BindOptions) DeepCopyInto

func (in *BindOptions) DeepCopyInto(out *BindOptions)

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

type Client

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

func (*Client) Configs

func (c *Client) Configs(namespace string) ConfigInterface

func (*Client) ExternalServices

func (c *Client) ExternalServices(namespace string) ExternalServiceInterface

func (*Client) RESTClient

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

func (*Client) RouteSets

func (c *Client) RouteSets(namespace string) RouteSetInterface

func (*Client) Services

func (c *Client) Services(namespace string) ServiceInterface

func (*Client) Stacks

func (c *Client) Stacks(namespace string) StackInterface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

func (*Client) Volumes

func (c *Client) Volumes(namespace string) VolumeInterface

type Clients

type Clients struct {
	Interface Interface

	Stack           StackClient
	ExternalService ExternalServiceClient
	Service         ServiceClient
	Config          ConfigClient
	Volume          VolumeClient
	RouteSet        RouteSetClient
}

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 Condition

type Condition struct {
	// Type of cluster condition.
	Type string `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition
	Message string `json:"message,omitempty"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type Config

type Config struct {
	types.Namespaced

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

	Spec   ConfigSpec   `json:"spec,omitempty"`
	Status ConfigStatus `json:"status,omitempty"`
}

func NewConfig

func NewConfig(namespace, name string, obj Config) *Config

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

func (*Config) DeepCopyObject

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

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

func (Config) Hash

func (c Config) Hash() (string, error)

type ConfigChangeHandlerFunc

type ConfigChangeHandlerFunc func(obj *Config) (runtime.Object, error)

type ConfigClient

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

	Cache() ConfigClientCache

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

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

type ConfigClientCache

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

	Index(name string, indexer ConfigIndexer)
	GetIndexed(name, key string) ([]*Config, error)
}

type ConfigController

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

type ConfigHandlerFunc

type ConfigHandlerFunc func(key string, obj *Config) (runtime.Object, error)

func NewConfigLifecycleAdapter

func NewConfigLifecycleAdapter(name string, clusterScoped bool, client ConfigInterface, l ConfigLifecycle) ConfigHandlerFunc

type ConfigIndexer

type ConfigIndexer func(obj *Config) ([]string, error)

type ConfigInterface

type ConfigInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Config) (*Config, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Config, error)
	Get(name string, opts metav1.GetOptions) (*Config, error)
	Update(*Config) (*Config, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ConfigList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ConfigController
	AddHandler(ctx context.Context, name string, sync ConfigHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ConfigLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ConfigHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ConfigLifecycle)
}

type ConfigLifecycle

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

type ConfigList

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

func (*ConfigList) DeepCopy

func (in *ConfigList) DeepCopy() *ConfigList

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

func (*ConfigList) DeepCopyInto

func (in *ConfigList) DeepCopyInto(out *ConfigList)

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

func (*ConfigList) DeepCopyObject

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

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

type ConfigLister

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

type ConfigMapping

type ConfigMapping struct {
	Source string `json:"source,omitempty" norman:"required"`
	Target string `json:"target,omitempty"`
	UID    int    `json:"uid,omitempty"`
	GID    int    `json:"gid,omitempty"`
	Mode   string `json:"mode,omitempty"`
}

func (*ConfigMapping) DeepCopy

func (in *ConfigMapping) DeepCopy() *ConfigMapping

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

func (*ConfigMapping) DeepCopyInto

func (in *ConfigMapping) DeepCopyInto(out *ConfigMapping)

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

func (ConfigMapping) MaybeString

func (c ConfigMapping) MaybeString() interface{}

type ConfigSpec

type ConfigSpec struct {
	Description string `json:"description,omitempty"`
	Content     string `json:"content,omitempty"`
	Encoded     bool   `json:"encoded,omitempty"`
	StackScoped
}

func (*ConfigSpec) DeepCopy

func (in *ConfigSpec) DeepCopy() *ConfigSpec

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

func (*ConfigSpec) DeepCopyInto

func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)

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

type ConfigStatus

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

func (*ConfigStatus) DeepCopy

func (in *ConfigStatus) DeepCopy() *ConfigStatus

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

func (*ConfigStatus) DeepCopyInto

func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus)

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

type ConfigsGetter

type ConfigsGetter interface {
	Configs(namespace string) ConfigInterface
}

type ContainerConfig

type ContainerConfig struct {
	ContainerPrivilegedConfig

	CPUs                   string        `json:"nanoCpus,omitempty"`
	CapAdd                 []string      `json:"capAdd,omitempty"`  // support string
	CapDrop                []string      `json:"capDrop,omitempty"` // support string
	Command                []string      `json:"command,omitempty"` // support string
	DefaultVolumeDriver    string        `json:"defaultVolumeDriver,omitempty"`
	Entrypoint             []string      `json:"entrypoint,omitempty"`
	Environment            []string      `json:"environment,omitempty"` // alias env, support map
	ExposedPorts           []ExposedPort `json:"expose,omitempty"`      // support []string, map
	Group                  string        `json:"group,omitempty"`
	Healthcheck            *HealthConfig `json:"healthcheck,omitempty"`
	Readycheck             *HealthConfig `json:"readycheck,omitempty"`
	Image                  string        `json:"image,omitempty"`
	ImagePullPolicy        string        `json:"imagePullPolicy,omitempty" norman:"type=enum,options=always|never|not-present,default=not-present"`
	Init                   bool          `json:"init,omitempty"`
	MemoryLimitBytes       int64         `json:"memoryLimitBytes,omitempty"`
	MemoryReservationBytes int64         `json:"memoryReservationBytes,omitempty"`
	OpenStdin              bool          `json:"stdinOpen,omitempty"` // alias interactive
	PortBindings           []PortBinding `json:"ports,omitempty"`     // support []string
	ReadonlyRootfs         bool          `json:"readOnly,omitempty"`
	Tmpfs                  []Tmpfs       `json:"tmpfs,omitempty"` // support []string too
	Tty                    bool          `json:"tty,omitempty"`
	User                   string        `json:"user,omitempty"`
	Volumes                []Mount       `json:"volumes,omitempty"`     // support []string too
	VolumesFrom            []string      `json:"volumesFrom,omitempty"` // support []string too
	WorkingDir             string        `json:"workingDir,omitempty"`

	Devices []DeviceMapping `json:"devices,omitempty"` // support []string and map[string]string
	Configs []ConfigMapping `json:"configs,omitempty"`
	Secrets []SecretMapping `json:"secrets,omitempty"`
}

func (*ContainerConfig) DeepCopy

func (in *ContainerConfig) DeepCopy() *ContainerConfig

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

func (*ContainerConfig) DeepCopyInto

func (in *ContainerConfig) DeepCopyInto(out *ContainerConfig)

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

type ContainerPrivilegedConfig

type ContainerPrivilegedConfig struct {
	Privileged bool `json:"privileged,omitempty"`
}

func (*ContainerPrivilegedConfig) DeepCopy

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

func (*ContainerPrivilegedConfig) DeepCopyInto

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

type CustomResourceDefinition

type CustomResourceDefinition struct {
	Kind    string `json:"kind,omitempty"`
	Group   string `json:"group,omitempty"`
	Version string `json:"version,omitempty"`
}

func (*CustomResourceDefinition) DeepCopy

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

func (*CustomResourceDefinition) DeepCopyInto

func (in *CustomResourceDefinition) DeepCopyInto(out *CustomResourceDefinition)

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

func (*CustomResourceDefinition) MaybeString

func (n *CustomResourceDefinition) MaybeString() interface{}

type Destination

type Destination struct {
	Service  string  `json:"service,omitempty"`
	Stack    string  `json:"stack,omitempty"`
	Revision string  `json:"revision,omitempty"`
	Port     *uint32 `json:"port,omitempty"`
}

func (*Destination) DeepCopy

func (in *Destination) DeepCopy() *Destination

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

func (*Destination) DeepCopyInto

func (in *Destination) DeepCopyInto(out *Destination)

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

func (Destination) String

func (d Destination) String() string

type DeviceMapping

type DeviceMapping struct {
	OnHost      string `json:"onHost,omitempty"`
	InContainer string `json:"inContainer,omitempty"`
	Permissions string `json:"permissions,omitempty"`
}

DeviceMapping represents the device mapping between the host and the container.

func (*DeviceMapping) DeepCopy

func (in *DeviceMapping) DeepCopy() *DeviceMapping

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

func (*DeviceMapping) DeepCopyInto

func (in *DeviceMapping) DeepCopyInto(out *DeviceMapping)

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

func (DeviceMapping) MaybeString

func (d DeviceMapping) MaybeString() interface{}

type Endpoint

type Endpoint struct {
	URL string `json:"url,omitempty"`
}

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

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

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

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

type ExposedPort

type ExposedPort struct {
	Name string `json:"name,omitempty"`
	PortBinding
}

func (*ExposedPort) DeepCopy

func (in *ExposedPort) DeepCopy() *ExposedPort

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

func (*ExposedPort) DeepCopyInto

func (in *ExposedPort) DeepCopyInto(out *ExposedPort)

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

func (ExposedPort) MaybeString

func (e ExposedPort) MaybeString() interface{}

type ExternalService

type ExternalService struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ExternalServiceSpec   `json:"spec,omitempty"`
	Status            ExternalServiceStatus `json:"status,omitempty"`
}

func NewExternalService

func NewExternalService(namespace, name string, obj ExternalService) *ExternalService

func (*ExternalService) DeepCopy

func (in *ExternalService) DeepCopy() *ExternalService

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

func (*ExternalService) DeepCopyInto

func (in *ExternalService) DeepCopyInto(out *ExternalService)

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

func (*ExternalService) DeepCopyObject

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

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

type ExternalServiceChangeHandlerFunc

type ExternalServiceChangeHandlerFunc func(obj *ExternalService) (runtime.Object, error)

type ExternalServiceClient

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

	Cache() ExternalServiceClientCache

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

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

type ExternalServiceClientCache

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

	Index(name string, indexer ExternalServiceIndexer)
	GetIndexed(name, key string) ([]*ExternalService, error)
}

type ExternalServiceController

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

type ExternalServiceHandlerFunc

type ExternalServiceHandlerFunc func(key string, obj *ExternalService) (runtime.Object, error)

func NewExternalServiceLifecycleAdapter

func NewExternalServiceLifecycleAdapter(name string, clusterScoped bool, client ExternalServiceInterface, l ExternalServiceLifecycle) ExternalServiceHandlerFunc

type ExternalServiceIndexer

type ExternalServiceIndexer func(obj *ExternalService) ([]string, error)

type ExternalServiceInterface

type ExternalServiceInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*ExternalService) (*ExternalService, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ExternalService, error)
	Get(name string, opts metav1.GetOptions) (*ExternalService, error)
	Update(*ExternalService) (*ExternalService, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ExternalServiceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ExternalServiceController
	AddHandler(ctx context.Context, name string, sync ExternalServiceHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ExternalServiceLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ExternalServiceHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ExternalServiceLifecycle)
}

type ExternalServiceLifecycle

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

type ExternalServiceList

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

func (*ExternalServiceList) DeepCopy

func (in *ExternalServiceList) DeepCopy() *ExternalServiceList

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

func (*ExternalServiceList) DeepCopyInto

func (in *ExternalServiceList) DeepCopyInto(out *ExternalServiceList)

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

func (*ExternalServiceList) DeepCopyObject

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

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

type ExternalServiceLister

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

type ExternalServiceSpec

type ExternalServiceSpec struct {
	Target string `json:"target,omitempty"`
	StackScoped
}

func (*ExternalServiceSpec) DeepCopy

func (in *ExternalServiceSpec) DeepCopy() *ExternalServiceSpec

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

func (*ExternalServiceSpec) DeepCopyInto

func (in *ExternalServiceSpec) DeepCopyInto(out *ExternalServiceSpec)

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

type ExternalServiceStatus

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

func (*ExternalServiceStatus) DeepCopy

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

func (*ExternalServiceStatus) DeepCopyInto

func (in *ExternalServiceStatus) DeepCopyInto(out *ExternalServiceStatus)

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

type ExternalServicesGetter

type ExternalServicesGetter interface {
	ExternalServices(namespace string) ExternalServiceInterface
}

type Fault

type Fault struct {
	Percentage  int   `json:"percentage,omitempty" norman:"min=0,max=100"`
	DelayMillis int   `json:"delayMillis,omitempty"`
	Abort       Abort `json:"abort,omitempty"`
}

func (*Fault) DeepCopy

func (in *Fault) DeepCopy() *Fault

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

func (*Fault) DeepCopyInto

func (in *Fault) DeepCopyInto(out *Fault)

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

type HealthConfig

type HealthConfig struct {
	// Test is the test to perform to check that the container is healthy.
	// An empty slice means to inherit the default.
	// The options are:
	// {} : inherit healthcheck
	// {"NONE"} : disable healthcheck
	// {"CMD", args...} : exec arguments directly
	// {"CMD-SHELL", command} : run command with system's default shell
	Test []string `json:"test,omitempty"` //alias string, deal with CMD, CMD-SHELL, NONE

	IntervalSeconds     int `json:"intervalSeconds,omitempty" norman:"default=10"`   // support friendly numbers, alias periodSeconds, period
	TimeoutSeconds      int `json:"timeoutSeconds,omitempty" norman:"default=5"`     // support friendly numbers
	InitialDelaySeconds int `json:"initialDelaySeconds,omitempty"`                   //alias start_period
	HealthyThreshold    int `json:"healthyThreshold,omitempty" norman:"default=1"`   //alias retries, successThreshold
	UnhealthyThreshold  int `json:"unhealthyThreshold,omitempty" norman:"default=3"` //alias failureThreshold, set to retries if unset
}

func (*HealthConfig) DeepCopy

func (in *HealthConfig) DeepCopy() *HealthConfig

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

func (*HealthConfig) DeepCopyInto

func (in *HealthConfig) DeepCopyInto(out *HealthConfig)

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

type Interface

func From

func From(ctx context.Context) Interface

func NewForConfig

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

type InternalStack

type InternalStack struct {
	Services         map[string]Service         `json:"services,omitempty"`
	Configs          map[string]Config          `json:"configs,omitempty"`
	Volumes          map[string]Volume          `json:"volumes,omitempty"`
	Routes           map[string]RouteSet        `json:"routes,omitempty"`
	ExternalServices map[string]ExternalService `json:"externalservices,omitempty"`
	Kubernetes       Kubernetes                 `json:"kubernetes,omitempty"`
}

func (*InternalStack) DeepCopy

func (in *InternalStack) DeepCopy() *InternalStack

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

func (*InternalStack) DeepCopyInto

func (in *InternalStack) DeepCopyInto(out *InternalStack)

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

type Kubernetes

type Kubernetes struct {
	CustomResourceDefinitions           []CustomResourceDefinition `json:"customResourceDefinitions,omitempty"`
	NamespacedCustomResourceDefinitions []CustomResourceDefinition `json:"namespacedCustomResourceDefinitions,omitempty"`
	Manifest                            string                     `json:"manifest,omitempty"`
	NamespacedManifest                  string                     `json:"namespacedManifest,omitempty"`
}

func (*Kubernetes) DeepCopy

func (in *Kubernetes) DeepCopy() *Kubernetes

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

func (*Kubernetes) DeepCopyInto

func (in *Kubernetes) DeepCopyInto(out *Kubernetes)

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

type Match

type Match struct {
	Path    *StringMatch           `json:"path,omitempty"`
	Scheme  *StringMatch           `json:"scheme,omitempty"`
	Method  *StringMatch           `json:"method,omitempty"`
	Headers map[string]StringMatch `json:"headers,omitempty"`
	Cookies map[string]StringMatch `json:"cookies,omitempty"`
	Port    *int                   `json:"port,omitempty"`
	From    *ServiceSource         `json:"from,omitempty"`
}

func (*Match) DeepCopy

func (in *Match) DeepCopy() *Match

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

func (*Match) DeepCopyInto

func (in *Match) DeepCopyInto(out *Match)

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

func (Match) MaybeString

func (m Match) MaybeString() interface{}

type Mount

type Mount struct {
	Kind string `json:"kind,omitempty" norman:"type=enum,options=bind|volume"`
	// Source specifies the name of the mount. Depending on mount type, this
	// may be a volume name or a host path, or even ignored.
	Source   string `json:"source,omitempty"`
	Target   string `json:"target,omitempty"`
	ReadOnly bool   `json:"readonly,omitempty"`

	BindOptions   *BindOptions   `json:"bind,omitempty"`
	VolumeOptions *VolumeOptions `json:"volume,omitempty"`
}

func (*Mount) DeepCopy

func (in *Mount) DeepCopy() *Mount

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

func (*Mount) DeepCopyInto

func (in *Mount) DeepCopyInto(out *Mount)

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

func (Mount) MaybeString

func (m Mount) MaybeString() interface{}

type NodeScheduling

type NodeScheduling struct {
	NodeName   string   `json:"nodeName,omitempty" norman:"type=reference[/v1/schemas/node]"`
	RequireAll []string `json:"requireAll,omitempty"`
	RequireAny []string `json:"requireAny,omitempty"`
	Preferred  []string `json:"preferred,omitempty"`
}

func (*NodeScheduling) DeepCopy

func (in *NodeScheduling) DeepCopy() *NodeScheduling

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

func (*NodeScheduling) DeepCopyInto

func (in *NodeScheduling) DeepCopyInto(out *NodeScheduling)

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

type Permission

type Permission struct {
	Role     string   `json:"role,omitempty"`
	Verbs    []string `json:"verbs,omitempty"`
	APIGroup string   `json:"apiGroup,omitempty"`
	Resource string   `json:"resource,omitempty"`
	URL      string   `json:"url,omitempty"`
	Name     string   `json:"name,omitempty"`
}

func (*Permission) DeepCopy

func (in *Permission) DeepCopy() *Permission

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

func (*Permission) DeepCopyInto

func (in *Permission) DeepCopyInto(out *Permission)

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

func (Permission) MaybeString

func (p Permission) MaybeString() interface{}

type PodConfig

type PodConfig struct {
	Hostname               string       `json:"hostname,omitempty"`
	Global                 bool         `json:"global,omitempty"`
	Scheduling             Scheduling   `json:"scheduling,omitempty"`
	StopGracePeriodSeconds *int         `json:"stopGracePeriod,omitempty"`                                                           // support friendly numbers
	RestartPolicy          string       `json:"restart,omitempty" norman:"type=enum,options=never|on-failure|always,default=always"` //support no and OnFailure
	DNS                    []string     `json:"dns,omitempty"`                                                                       // support string
	DNSOptions             []string     `json:"dnsOptions,omitempty"`                                                                // support string
	DNSSearch              []string     `json:"dnsSearch,omitempty"`                                                                 // support string
	ExtraHosts             []string     `json:"extraHosts,omitempty"`                                                                // support map
	GlobalPermissions      []Permission `json:"globalPermissions,omitempty"`
	Permissions            []Permission `json:"permissions,omitempty"`
}

func (*PodConfig) DeepCopy

func (in *PodConfig) DeepCopy() *PodConfig

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

func (*PodConfig) DeepCopyInto

func (in *PodConfig) DeepCopyInto(out *PodConfig)

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

type PortBinding

type PortBinding struct {
	Port       int64  `json:"port,omitempty"`
	Protocol   string `json:"protocol,omitempty"`
	IP         string `json:"ip,omitempty"`
	TargetPort int64  `json:"targetPort,omitempty"`
}

func (*PortBinding) DeepCopy

func (in *PortBinding) DeepCopy() *PortBinding

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

func (*PortBinding) DeepCopyInto

func (in *PortBinding) DeepCopyInto(out *PortBinding)

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

func (PortBinding) MaybeString

func (p PortBinding) MaybeString() interface{}

type PrivilegedConfig

type PrivilegedConfig struct {
	NetworkMode string `json:"net,omitempty" norman:"type=enum,options=default|host,default=default"` // alias network, support bridge
	IpcMode     string `json:"ipc,omitempty" norman:"type=enum,options=default|host,default=default"`
	PidMode     string `json:"pid,omitempty" norman:"type=enum,options=default|host,default=default"`
}

func (*PrivilegedConfig) DeepCopy

func (in *PrivilegedConfig) DeepCopy() *PrivilegedConfig

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

func (*PrivilegedConfig) DeepCopyInto

func (in *PrivilegedConfig) DeepCopyInto(out *PrivilegedConfig)

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

type Propagation

type Propagation string

Propagation represents the propagation of a mount.

const (
	// PropagationRPrivate RPRIVATE
	PropagationRPrivate Propagation = "rprivate"
	// PropagationPrivate PRIVATE
	PropagationPrivate Propagation = "private"
	// PropagationRShared RSHARED
	PropagationRShared Propagation = "rshared"
	// PropagationShared SHARED
	PropagationShared Propagation = "shared"
	// PropagationRSlave RSLAVE
	PropagationRSlave Propagation = "rslave"
	// PropagationSlave SLAVE
	PropagationSlave Propagation = "slave"
)

type Redirect

type Redirect struct {
	Host string `json:"host,omitempty"`
	Path string `json:"path,omitempty"`
}

func (*Redirect) DeepCopy

func (in *Redirect) DeepCopy() *Redirect

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

func (*Redirect) DeepCopyInto

func (in *Redirect) DeepCopyInto(out *Redirect)

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

type Retry

type Retry struct {
	Attempts      int `json:"attempts,omitempty"`
	TimeoutMillis int `json:"timeoutMillis,omitempty"`
}

func (*Retry) DeepCopy

func (in *Retry) DeepCopy() *Retry

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

func (*Retry) DeepCopyInto

func (in *Retry) DeepCopyInto(out *Retry)

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

type Rewrite

type Rewrite struct {
	Host string `json:"host,omitempty"`
	Path string `json:"path,omitempty"`
}

func (*Rewrite) DeepCopy

func (in *Rewrite) DeepCopy() *Rewrite

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

func (*Rewrite) DeepCopyInto

func (in *Rewrite) DeepCopyInto(out *Rewrite)

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

type RouteSet

type RouteSet struct {
	types.Namespaced

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

	Spec   RouteSetSpec   `json:"spec,omitempty"`
	Status RouteSetStatus `json:"status,omitempty"`
}

func NewRouteSet

func NewRouteSet(namespace, name string, obj RouteSet) *RouteSet

func (*RouteSet) DeepCopy

func (in *RouteSet) DeepCopy() *RouteSet

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

func (*RouteSet) DeepCopyInto

func (in *RouteSet) DeepCopyInto(out *RouteSet)

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

func (*RouteSet) DeepCopyObject

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

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

type RouteSetChangeHandlerFunc

type RouteSetChangeHandlerFunc func(obj *RouteSet) (runtime.Object, error)

type RouteSetClient

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

	Cache() RouteSetClientCache

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

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

type RouteSetClientCache

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

	Index(name string, indexer RouteSetIndexer)
	GetIndexed(name, key string) ([]*RouteSet, error)
}

type RouteSetController

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

type RouteSetHandlerFunc

type RouteSetHandlerFunc func(key string, obj *RouteSet) (runtime.Object, error)

func NewRouteSetLifecycleAdapter

func NewRouteSetLifecycleAdapter(name string, clusterScoped bool, client RouteSetInterface, l RouteSetLifecycle) RouteSetHandlerFunc

type RouteSetIndexer

type RouteSetIndexer func(obj *RouteSet) ([]string, error)

type RouteSetInterface

type RouteSetInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*RouteSet) (*RouteSet, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*RouteSet, error)
	Get(name string, opts metav1.GetOptions) (*RouteSet, error)
	Update(*RouteSet) (*RouteSet, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*RouteSetList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() RouteSetController
	AddHandler(ctx context.Context, name string, sync RouteSetHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle RouteSetLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync RouteSetHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle RouteSetLifecycle)
}

type RouteSetLifecycle

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

type RouteSetList

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

func (*RouteSetList) DeepCopy

func (in *RouteSetList) DeepCopy() *RouteSetList

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

func (*RouteSetList) DeepCopyInto

func (in *RouteSetList) DeepCopyInto(out *RouteSetList)

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

func (*RouteSetList) DeepCopyObject

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

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

type RouteSetLister

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

type RouteSetSpec

type RouteSetSpec struct {
	Routes []RouteSpec `json:"routes,omitempty"`
	StackScoped
}

func (*RouteSetSpec) DeepCopy

func (in *RouteSetSpec) DeepCopy() *RouteSetSpec

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

func (*RouteSetSpec) DeepCopyInto

func (in *RouteSetSpec) DeepCopyInto(out *RouteSetSpec)

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

type RouteSetStatus

type RouteSetStatus struct {
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*RouteSetStatus) DeepCopy

func (in *RouteSetStatus) DeepCopy() *RouteSetStatus

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

func (*RouteSetStatus) DeepCopyInto

func (in *RouteSetStatus) DeepCopyInto(out *RouteSetStatus)

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

type RouteSetsGetter

type RouteSetsGetter interface {
	RouteSets(namespace string) RouteSetInterface
}

type RouteSpec

type RouteSpec struct {
	Matches    []Match               `json:"matches,omitempty"`
	To         []WeightedDestination `json:"to,omitempty"`
	Redirect   *Redirect             `json:"redirect,omitempty"`
	Rewrite    *Rewrite              `json:"rewrite,omitempty"`
	AddHeaders []string              `json:"addHeaders,omitempty"`

	RouteTraffic
}

func (*RouteSpec) DeepCopy

func (in *RouteSpec) DeepCopy() *RouteSpec

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

func (*RouteSpec) DeepCopyInto

func (in *RouteSpec) DeepCopyInto(out *RouteSpec)

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

type RouteTraffic

type RouteTraffic struct {
	Fault         *Fault       `json:"fault,omitempty"`
	Mirror        *Destination `json:"mirror,omitempty"`
	TimeoutMillis *int         `json:"timeoutMillis,omitempty"`
	Retry         *Retry       `json:"retry,omitempty"`
}

func (*RouteTraffic) DeepCopy

func (in *RouteTraffic) DeepCopy() *RouteTraffic

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

func (*RouteTraffic) DeepCopyInto

func (in *RouteTraffic) DeepCopyInto(out *RouteTraffic)

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

type ScaleStatus

type ScaleStatus struct {
	Ready       int `json:"ready,omitempty"`
	Unavailable int `json:"unavailable,omitempty"`
	Available   int `json:"available,omitempty"`
	Updated     int `json:"updated,omitempty"`
}

func (*ScaleStatus) DeepCopy

func (in *ScaleStatus) DeepCopy() *ScaleStatus

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

func (*ScaleStatus) DeepCopyInto

func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus)

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

type Scheduling

type Scheduling struct {
	Node      NodeScheduling `json:"node,omitempty"`
	Scheduler string         `json:"scheduler,omitempty"`
}

func (*Scheduling) DeepCopy

func (in *Scheduling) DeepCopy() *Scheduling

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

func (*Scheduling) DeepCopyInto

func (in *Scheduling) DeepCopyInto(out *Scheduling)

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

func (Scheduling) ToNodeAffinity

func (s Scheduling) ToNodeAffinity() (*v1.NodeAffinity, error)

type SecretMapping

type SecretMapping struct {
	Source string `json:"source,omitempty" norman:"required"`
	Target string `json:"target,omitempty"`
	Mode   string `json:"mode,omitempty"`
}

func (*SecretMapping) DeepCopy

func (in *SecretMapping) DeepCopy() *SecretMapping

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

func (*SecretMapping) DeepCopyInto

func (in *SecretMapping) DeepCopyInto(out *SecretMapping)

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

func (SecretMapping) MaybeString

func (s SecretMapping) MaybeString() interface{}

type Service

type Service struct {
	types.Namespaced

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

	Spec   ServiceSpec   `json:"spec,omitempty"`
	Status ServiceStatus `json:"status,omitempty"`
}

func NewService

func NewService(namespace, name string, obj Service) *Service

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

func (*Service) DeepCopyObject

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

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

type ServiceChangeHandlerFunc

type ServiceChangeHandlerFunc func(obj *Service) (runtime.Object, error)

type ServiceClient

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

	Cache() ServiceClientCache

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

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

type ServiceClientCache

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

	Index(name string, indexer ServiceIndexer)
	GetIndexed(name, key string) ([]*Service, error)
}

type ServiceController

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

type ServiceHandlerFunc

type ServiceHandlerFunc func(key string, obj *Service) (runtime.Object, error)

func NewServiceLifecycleAdapter

func NewServiceLifecycleAdapter(name string, clusterScoped bool, client ServiceInterface, l ServiceLifecycle) ServiceHandlerFunc

type ServiceIndexer

type ServiceIndexer func(obj *Service) ([]string, error)

type ServiceInterface

type ServiceInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Service) (*Service, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Service, error)
	Get(name string, opts metav1.GetOptions) (*Service, error)
	Update(*Service) (*Service, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ServiceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ServiceController
	AddHandler(ctx context.Context, name string, sync ServiceHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ServiceLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ServiceHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ServiceLifecycle)
}

type ServiceLifecycle

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

type ServiceList

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

func (*ServiceList) DeepCopy

func (in *ServiceList) DeepCopy() *ServiceList

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

func (*ServiceList) DeepCopyInto

func (in *ServiceList) DeepCopyInto(out *ServiceList)

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

func (*ServiceList) DeepCopyObject

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

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

type ServiceLister

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

type ServiceRevision

type ServiceRevision struct {
	Version       string `json:"version,omitempty"`
	Weight        int    `json:"weight,omitempty"`
	Promote       bool   `json:"promote,omitempty"`
	ServiceName   string `json:"serviceName,omitempty"`
	ParentService string `json:"parentService,omitempty"`
}

func (*ServiceRevision) DeepCopy

func (in *ServiceRevision) DeepCopy() *ServiceRevision

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

func (*ServiceRevision) DeepCopyInto

func (in *ServiceRevision) DeepCopyInto(out *ServiceRevision)

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

type ServiceSource

type ServiceSource struct {
	Service  string `json:"service,omitempty"`
	Stack    string `json:"stack,omitempty"`
	Revision string `json:"revision,omitempty"`
}

func (*ServiceSource) DeepCopy

func (in *ServiceSource) DeepCopy() *ServiceSource

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

func (*ServiceSource) DeepCopyInto

func (in *ServiceSource) DeepCopyInto(out *ServiceSource)

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

func (ServiceSource) String

func (s ServiceSource) String() string

type ServiceSpec

type ServiceSpec struct {
	ServiceUnversionedSpec
	StackScoped
	Revision ServiceRevision `json:"revision,omitempty"`
}

func (*ServiceSpec) DeepCopy

func (in *ServiceSpec) DeepCopy() *ServiceSpec

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

func (*ServiceSpec) DeepCopyInto

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

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

type ServiceStatus

type ServiceStatus struct {
	DeploymentStatus  *appsv1.DeploymentStatus  `json:"deploymentStatus,omitempty"`
	DaemonSetStatus   *appsv1.DaemonSetStatus   `json:"daemonSetStatus,omitempty"`
	StatefulSetStatus *appsv1.StatefulSetStatus `json:"statefulSetStatus,omitempty"`
	ScaleStatus       *ScaleStatus              `json:"scaleStatus,omitempty"`
	Conditions        []Condition               `json:"conditions,omitempty"`
	Endpoints         []Endpoint                `json:"endpoints,omitempty"`
}

func (*ServiceStatus) DeepCopy

func (in *ServiceStatus) DeepCopy() *ServiceStatus

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

func (*ServiceStatus) DeepCopyInto

func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)

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

type ServiceUnversionedSpec

type ServiceUnversionedSpec struct {
	Labels             map[string]string `json:"labels,omitempty"`
	Metadata           map[string]string `json:"metadata,omitempty"` //alias annotations
	Scale              int               `json:"scale"`
	BatchSize          int               `json:"batchSize,omitempty"`
	UpdateOrder        string            `json:"updateOrder,omitempty" norman:"type=enum,options=start-first|stop-first"`
	UpdateStrategy     string            `json:"updateStrategy,omitempty" norman:"type=enum,options=rolling|on-delete,default=rolling"`
	DeploymentStrategy string            `json:"deploymentStrategy,omitempty" norman:"type=enum,options=parallel|ordered,default=parallel"`
	AutoscaleConfig

	PodConfig
	PrivilegedConfig
	Sidekicks map[string]SidekickConfig `json:"sidekicks,omitempty"`

	ContainerConfig
}

func (*ServiceUnversionedSpec) DeepCopy

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

func (*ServiceUnversionedSpec) DeepCopyInto

func (in *ServiceUnversionedSpec) DeepCopyInto(out *ServiceUnversionedSpec)

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

type ServicesGetter

type ServicesGetter interface {
	Services(namespace string) ServiceInterface
}

type SidekickConfig

type SidekickConfig struct {
	InitContainer bool `json:"initContainer,omitempty"`
	ContainerConfig
}

func (*SidekickConfig) DeepCopy

func (in *SidekickConfig) DeepCopy() *SidekickConfig

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

func (*SidekickConfig) DeepCopyInto

func (in *SidekickConfig) DeepCopyInto(out *SidekickConfig)

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

type Stack

type Stack struct {
	types.Namespaced

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

	Spec   StackSpec   `json:"spec"`
	Status StackStatus `json:"status"`
}

func NewStack

func NewStack(namespace, name string, obj Stack) *Stack

func (*Stack) DeepCopy

func (in *Stack) DeepCopy() *Stack

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

func (*Stack) DeepCopyInto

func (in *Stack) DeepCopyInto(out *Stack)

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

func (*Stack) DeepCopyObject

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

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

type StackChangeHandlerFunc

type StackChangeHandlerFunc func(obj *Stack) (runtime.Object, error)

type StackClient

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

	Cache() StackClientCache

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

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

type StackClientCache

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

	Index(name string, indexer StackIndexer)
	GetIndexed(name, key string) ([]*Stack, error)
}

type StackController

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

type StackHandlerFunc

type StackHandlerFunc func(key string, obj *Stack) (runtime.Object, error)

func NewStackLifecycleAdapter

func NewStackLifecycleAdapter(name string, clusterScoped bool, client StackInterface, l StackLifecycle) StackHandlerFunc

type StackIndexer

type StackIndexer func(obj *Stack) ([]string, error)

type StackInterface

type StackInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Stack) (*Stack, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Stack, error)
	Get(name string, opts metav1.GetOptions) (*Stack, error)
	Update(*Stack) (*Stack, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*StackList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() StackController
	AddHandler(ctx context.Context, name string, sync StackHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle StackLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync StackHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle StackLifecycle)
}

type StackLifecycle

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

type StackList

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

func (*StackList) DeepCopy

func (in *StackList) DeepCopy() *StackList

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

func (*StackList) DeepCopyInto

func (in *StackList) DeepCopyInto(out *StackList)

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

func (*StackList) DeepCopyObject

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

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

type StackLister

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

type StackScoped

type StackScoped struct {
	StackName   string `json:"stackName,omitempty" norman:"type=reference[stack],required,noupdate"`
	ProjectName string `json:"projectName,omitempty" norman:"type=reference[/v1-rio/schemas/project],noupdate"`
}

func (*StackScoped) DeepCopy

func (in *StackScoped) DeepCopy() *StackScoped

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

func (*StackScoped) DeepCopyInto

func (in *StackScoped) DeepCopyInto(out *StackScoped)

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

type StackSpec

type StackSpec struct {
	Description               string            `json:"description,omitempty"`
	Template                  string            `json:"template,omitempty"`
	AdditionalFiles           map[string]string `json:"additionalFiles,omitempty"`
	Answers                   map[string]string `json:"answers,omitempty"`
	Questions                 []v3.Question     `json:"questions,omitempty"`
	DisableMesh               bool              `json:"disableMesh,omitempty"`
	EnableAutoscale           bool              `json:"enableAutoscale,omitempty"`
	EnableKubernetesResources bool              `json:"enableKubernetesResources,omitempty"`
}

func (*StackSpec) DeepCopy

func (in *StackSpec) DeepCopy() *StackSpec

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

func (*StackSpec) DeepCopyInto

func (in *StackSpec) DeepCopyInto(out *StackSpec)

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

type StackStatus

type StackStatus struct {
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*StackStatus) DeepCopy

func (in *StackStatus) DeepCopy() *StackStatus

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

func (*StackStatus) DeepCopyInto

func (in *StackStatus) DeepCopyInto(out *StackStatus)

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

type StacksGetter

type StacksGetter interface {
	Stacks(namespace string) StackInterface
}

type StringMatch

type StringMatch struct {
	Exact  string `json:"exact,omitempty"`
	Prefix string `json:"prefix,omitempty"`
	Regexp string `json:"regexp,omitempty"`
}

func (*StringMatch) DeepCopy

func (in *StringMatch) DeepCopy() *StringMatch

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

func (*StringMatch) DeepCopyInto

func (in *StringMatch) DeepCopyInto(out *StringMatch)

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

func (StringMatch) String

func (s StringMatch) String() string

type Tmpfs

type Tmpfs struct {
	SizeBytes int64  `json:"sizeBytes,omitempty"`
	ReadOnly  bool   `json:"readOnly,omitempty"`
	Path      string `json:"path,omitempty" norman:"required"`
}

Tmpfs defines options specific to mounts of type "tmpfs".

func (*Tmpfs) DeepCopy

func (in *Tmpfs) DeepCopy() *Tmpfs

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

func (*Tmpfs) DeepCopyInto

func (in *Tmpfs) DeepCopyInto(out *Tmpfs)

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

func (Tmpfs) MaybeString

func (t Tmpfs) MaybeString() interface{}

type Volume

type Volume struct {
	types.Namespaced

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

	Spec   VolumeSpec   `json:"spec,omitempty"`
	Status VolumeStatus `json:"status,omitempty"`
}

func NewVolume

func NewVolume(namespace, name string, obj Volume) *Volume

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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

func (*Volume) DeepCopyObject

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

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

type VolumeChangeHandlerFunc

type VolumeChangeHandlerFunc func(obj *Volume) (runtime.Object, error)

type VolumeClient

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

	Cache() VolumeClientCache

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

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

type VolumeClientCache

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

	Index(name string, indexer VolumeIndexer)
	GetIndexed(name, key string) ([]*Volume, error)
}

type VolumeController

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

type VolumeHandlerFunc

type VolumeHandlerFunc func(key string, obj *Volume) (runtime.Object, error)

func NewVolumeLifecycleAdapter

func NewVolumeLifecycleAdapter(name string, clusterScoped bool, client VolumeInterface, l VolumeLifecycle) VolumeHandlerFunc

type VolumeIndexer

type VolumeIndexer func(obj *Volume) ([]string, error)

type VolumeInterface

type VolumeInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Volume) (*Volume, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Volume, error)
	Get(name string, opts metav1.GetOptions) (*Volume, error)
	Update(*Volume) (*Volume, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*VolumeList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() VolumeController
	AddHandler(ctx context.Context, name string, sync VolumeHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle VolumeLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync VolumeHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle VolumeLifecycle)
}

type VolumeLifecycle

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

type VolumeList

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

func (*VolumeList) DeepCopy

func (in *VolumeList) DeepCopy() *VolumeList

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

func (*VolumeList) DeepCopyInto

func (in *VolumeList) DeepCopyInto(out *VolumeList)

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

func (*VolumeList) DeepCopyObject

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

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

type VolumeLister

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

type VolumeOptions

type VolumeOptions struct {
	NoCopy   bool   `json:"noCopy,omitempty"`
	Driver   string `json:"driver,omitempty"`
	SizeInGB int    `json:"sizeInGb,omitempty"`
	SubPath  string `json:"subPath,omitempty"`
}

VolumeOptions represents the options for a mount of type volume.

func (*VolumeOptions) DeepCopy

func (in *VolumeOptions) DeepCopy() *VolumeOptions

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

func (*VolumeOptions) DeepCopyInto

func (in *VolumeOptions) DeepCopyInto(out *VolumeOptions)

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

type VolumeSpec

type VolumeSpec struct {
	Description string `json:"description,omitempty"`
	Driver      string `json:"driver,omitempty"`
	Template    bool   `json:"template,omitempty,noupdate"`
	SizeInGB    int    `json:"sizeInGb,omitempty,required"`
	AccessMode  string `json:"accessMode,omitempty" norman:"type=enum,options=readWriteOnce|readOnlyMany|readWriteMany,default=readWriteOnce"`
	StackScoped
}

func (*VolumeSpec) DeepCopy

func (in *VolumeSpec) DeepCopy() *VolumeSpec

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

func (*VolumeSpec) DeepCopyInto

func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec)

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

type VolumeStatus

type VolumeStatus struct {
	PVCStatus  *v1.PersistentVolumeClaimStatus `json:"pvcStatus,omitempty"`
	Conditions []Condition                     `json:"conditions,omitempty"`
}

func (*VolumeStatus) DeepCopy

func (in *VolumeStatus) DeepCopy() *VolumeStatus

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

func (*VolumeStatus) DeepCopyInto

func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus)

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

type VolumesGetter

type VolumesGetter interface {
	Volumes(namespace string) VolumeInterface
}

type WeightedDestination

type WeightedDestination struct {
	Destination
	Weight int `json:"weight,omitempty"`
}

func (*WeightedDestination) DeepCopy

func (in *WeightedDestination) DeepCopy() *WeightedDestination

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

func (*WeightedDestination) DeepCopyInto

func (in *WeightedDestination) DeepCopyInto(out *WeightedDestination)

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

func (WeightedDestination) String

func (w WeightedDestination) String() string

Source Files

  • auth.go
  • condition.go
  • config.go
  • externalservice.go
  • kubernetes.go
  • mount.go
  • route.go
  • service.go
  • stack.go
  • volume.go
  • zz_generated_config_controller.go
  • zz_generated_config_lifecycle_adapter.go
  • zz_generated_deepcopy.go
  • zz_generated_external_service_controller.go
  • zz_generated_external_service_lifecycle_adapter.go
  • zz_generated_k8s_client.go
  • zz_generated_route_set_controller.go
  • zz_generated_route_set_lifecycle_adapter.go
  • zz_generated_scheme.go
  • zz_generated_service_controller.go
  • zz_generated_service_lifecycle_adapter.go
  • zz_generated_stack_controller.go
  • zz_generated_stack_lifecycle_adapter.go
  • zz_generated_volume_controller.go
  • zz_generated_volume_lifecycle_adapter.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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