v1beta1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	ReadVerbs = []string{
		"get",
		"list",
		"watch",
	}
	WriteVerbs = []string{
		"create",
		"delete",
		"get",
		"list",
		"patch",
		"update",
		"watch",
	}
)
View Source
var (
	StackConditionNamespaceCreated = condition.Cond("NamespaceCreated")
	StackConditionParsed           = condition.Cond("Parsed")
	StackConditionDefined          = condition.Cond("Defined")
	StackConditionDeployed         = condition.Cond("Deployed")
	StackConditionMeshDeployed     = condition.Cond("MeshDeployed")
)
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 (
	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,
	}
)

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 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 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) 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 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"`
}

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 ConfigController

type ConfigController interface {
	Informer() cache.SharedIndexInformer
	Lister() ConfigLister
	AddHandler(name string, handler ConfigHandlerFunc)
	AddClusterScopedHandler(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) error

func NewConfigLifecycleAdapter

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

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(name string, sync ConfigHandlerFunc)
	AddLifecycle(name string, lifecycle ConfigLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync ConfigHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle ConfigLifecycle)
}

type ConfigLifecycle

type ConfigLifecycle interface {
	Create(obj *Config) (*Config, error)
	Remove(obj *Config) (*Config, error)
	Updated(obj *Config) (*Config, 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 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
	Healthcheck            *HealthConfig `json:"healthcheck,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
	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     int64  `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 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 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=2"`   //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 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"`
	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[/v1beta1/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"`
	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"`
	PortBindings           []PortBinding `json:"ports,omitempty"` // support []string
}

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"`
}

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 RouteSetController

type RouteSetController interface {
	Informer() cache.SharedIndexInformer
	Lister() RouteSetLister
	AddHandler(name string, handler RouteSetHandlerFunc)
	AddClusterScopedHandler(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) error

func NewRouteSetLifecycleAdapter

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

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(name string, sync RouteSetHandlerFunc)
	AddLifecycle(name string, lifecycle RouteSetLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync RouteSetHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle RouteSetLifecycle)
}

type RouteSetLifecycle

type RouteSetLifecycle interface {
	Create(obj *RouteSet) (*RouteSet, error)
	Remove(obj *RouteSet) (*RouteSet, error)
	Updated(obj *RouteSet) (*RouteSet, 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 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"`
	Websocket  bool                  `json:"websocket,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 (*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 ServiceController

type ServiceController interface {
	Informer() cache.SharedIndexInformer
	Lister() ServiceLister
	AddHandler(name string, handler ServiceHandlerFunc)
	AddClusterScopedHandler(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) error

func NewServiceLifecycleAdapter

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

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(name string, sync ServiceHandlerFunc)
	AddLifecycle(name string, lifecycle ServiceLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync ServiceHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle ServiceLifecycle)
}

type ServiceLifecycle

type ServiceLifecycle interface {
	Create(obj *Service) (*Service, error)
	Remove(obj *Service) (*Service, error)
	Updated(obj *Service) (*Service, 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 {
	Spec    ServiceUnversionedSpec `json:"spec,omitempty"`
	Weight  int                    `json:"weight,omitempty"`
	Promote bool                   `json:"promote,omitempty"`
	Status  ServiceStatus          `json:"status,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
	Revisions map[string]ServiceRevision `json:"revisions,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 *v1beta2.DeploymentStatus `json:"deploymentStatus,omitempty"`
	ScaleStatus      *ScaleStatus              `json:"scaleStatus,omitempty"`
	Conditions       []Condition               `json:"conditions,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"`

	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 (*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 StackController

type StackController interface {
	Informer() cache.SharedIndexInformer
	Lister() StackLister
	AddHandler(name string, handler StackHandlerFunc)
	AddClusterScopedHandler(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) error

func NewStackLifecycleAdapter

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

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(name string, sync StackHandlerFunc)
	AddLifecycle(name string, lifecycle StackLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync StackHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle StackLifecycle)
}

type StackLifecycle

type StackLifecycle interface {
	Create(obj *Stack) (*Stack, error)
	Remove(obj *Stack) (*Stack, error)
	Updated(obj *Stack) (*Stack, 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"`
	SpaceName string `json:"spaceName,omitempty" norman:"type=reference[/v1beta1-rio/schemas/space],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"`
	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 (*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 VolumeController

type VolumeController interface {
	Informer() cache.SharedIndexInformer
	Lister() VolumeLister
	AddHandler(name string, handler VolumeHandlerFunc)
	AddClusterScopedHandler(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) error

func NewVolumeLifecycleAdapter

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

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(name string, sync VolumeHandlerFunc)
	AddLifecycle(name string, lifecycle VolumeLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync VolumeHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle VolumeLifecycle)
}

type VolumeLifecycle

type VolumeLifecycle interface {
	Create(obj *Volume) (*Volume, error)
	Remove(obj *Volume) (*Volume, error)
	Updated(obj *Volume) (*Volume, 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 int64 `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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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