Documentation
¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Abort
- type AutoscaleConfig
- type BindOptions
- type Client
- func (c *Client) Configs(namespace string) ConfigInterface
- func (c *Client) ExternalServices(namespace string) ExternalServiceInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) RouteSets(namespace string) RouteSetInterface
- func (c *Client) Services(namespace string) ServiceInterface
- func (c *Client) Stacks(namespace string) StackInterface
- func (c *Client) Start(ctx context.Context, threadiness int) error
- func (c *Client) Sync(ctx context.Context) error
- func (c *Client) Volumes(namespace string) VolumeInterface
- type Clients
- type Condition
- type Config
- type ConfigChangeHandlerFunc
- type ConfigClient
- type ConfigClientCache
- type ConfigController
- type ConfigHandlerFunc
- type ConfigIndexer
- type ConfigInterface
- type ConfigLifecycle
- type ConfigList
- type ConfigLister
- type ConfigMapping
- type ConfigSpec
- type ConfigStatus
- type ConfigsGetter
- type ContainerConfig
- type ContainerPrivilegedConfig
- type CustomResourceDefinition
- type Destination
- type DeviceMapping
- type Endpoint
- type ExposedPort
- type ExternalService
- type ExternalServiceChangeHandlerFunc
- type ExternalServiceClient
- type ExternalServiceClientCache
- type ExternalServiceController
- type ExternalServiceHandlerFunc
- type ExternalServiceIndexer
- type ExternalServiceInterface
- type ExternalServiceLifecycle
- type ExternalServiceList
- type ExternalServiceLister
- type ExternalServiceSpec
- type ExternalServiceStatus
- type ExternalServicesGetter
- type Fault
- type HealthConfig
- type Interface
- type InternalStack
- type Kubernetes
- type Match
- type Mount
- type NodeScheduling
- type Permission
- type PodConfig
- type PortBinding
- type PrivilegedConfig
- type Propagation
- type Redirect
- type Retry
- type Rewrite
- type RouteSet
- type RouteSetChangeHandlerFunc
- type RouteSetClient
- type RouteSetClientCache
- type RouteSetController
- type RouteSetHandlerFunc
- type RouteSetIndexer
- type RouteSetInterface
- type RouteSetLifecycle
- type RouteSetList
- type RouteSetLister
- type RouteSetSpec
- type RouteSetStatus
- type RouteSetsGetter
- type RouteSpec
- type RouteTraffic
- type ScaleStatus
- type Scheduling
- type SecretMapping
- type Service
- type ServiceChangeHandlerFunc
- type ServiceClient
- type ServiceClientCache
- type ServiceController
- type ServiceHandlerFunc
- type ServiceIndexer
- type ServiceInterface
- type ServiceLifecycle
- type ServiceList
- type ServiceLister
- type ServiceRevision
- type ServiceSource
- type ServiceSpec
- type ServiceStatus
- type ServiceUnversionedSpec
- type ServicesGetter
- type SidekickConfig
- type Stack
- type StackChangeHandlerFunc
- type StackClient
- type StackClientCache
- type StackController
- type StackHandlerFunc
- type StackIndexer
- type StackInterface
- type StackLifecycle
- type StackList
- type StackLister
- type StackScoped
- type StackSpec
- type StackStatus
- type StacksGetter
- type StringMatch
- type Tmpfs
- type Volume
- type VolumeChangeHandlerFunc
- type VolumeClient
- type VolumeClientCache
- type VolumeController
- type VolumeHandlerFunc
- type VolumeIndexer
- type VolumeInterface
- type VolumeLifecycle
- type VolumeList
- type VolumeLister
- type VolumeOptions
- type VolumeSpec
- type VolumeStatus
- type VolumesGetter
- type WeightedDestination
Constants ¶
const ( GroupName = "rio.cattle.io" Version = "v1" )
Variables ¶
var ( ReadVerbs = []string{ "get", "list", "watch", } WriteVerbs = []string{ "create", "delete", "get", "list", "patch", "update", "watch", } )
var ( StackConditionDefined = condition.Cond("Defined") StackConditionDeployed = condition.Cond("Deployed") )
var ( ConfigGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Config", } ConfigResource = metav1.APIResource{ Name: "configs", SingularName: "config", Namespaced: true, Kind: ConfigGroupVersionKind.Kind, } )
var ( ExternalServiceGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ExternalService", } ExternalServiceResource = metav1.APIResource{ Name: "externalservices", SingularName: "externalservice", Namespaced: true, Kind: ExternalServiceGroupVersionKind.Kind, } )
var ( RouteSetGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "RouteSet", } RouteSetResource = metav1.APIResource{ Name: "routesets", SingularName: "routeset", Namespaced: true, Kind: RouteSetGroupVersionKind.Kind, } )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( ServiceGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Service", } ServiceResource = metav1.APIResource{ Name: "services", SingularName: "service", Namespaced: true, Kind: ServiceGroupVersionKind.Kind, } )
var ( StackGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Stack", } StackResource = metav1.APIResource{ Name: "stacks", SingularName: "stack", Namespaced: true, Kind: StackGroupVersionKind.Kind, } )
var ( VolumeGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Volume", } VolumeResource = metav1.APIResource{ Name: "volumes", SingularName: "volume", Namespaced: true, Kind: VolumeGroupVersionKind.Kind, } )
var Propagations = []Propagation{ PropagationRPrivate, PropagationPrivate, PropagationRShared, PropagationShared, PropagationRSlave, PropagationSlave, }
Propagations is the list of all valid mount propagations
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Factory ¶
func Kind ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Abort.
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 ¶
func (*Client) Configs ¶
func (c *Client) Configs(namespace string) ConfigInterface
func (*Client) ExternalServices ¶
func (c *Client) ExternalServices(namespace string) ExternalServiceInterface
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) 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
}
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
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 (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigChangeHandlerFunc ¶
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 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 ¶
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(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 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 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 ¶
func (in *ContainerPrivilegedConfig) DeepCopy() *ContainerPrivilegedConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerPrivilegedConfig.
func (*ContainerPrivilegedConfig) DeepCopyInto ¶
func (in *ContainerPrivilegedConfig) DeepCopyInto(out *ContainerPrivilegedConfig)
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 ¶
func (in *CustomResourceDefinition) DeepCopy() *CustomResourceDefinition
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
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 ¶
func (in *ExternalServiceStatus) DeepCopy() *ExternalServiceStatus
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Fault.
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 ¶
type Interface interface {
RESTClient() rest.Interface
controller.Starter
StacksGetter
ExternalServicesGetter
ServicesGetter
ConfigsGetter
VolumesGetter
RouteSetsGetter
}
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Match.
func (*Match) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mount.
func (*Mount) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodConfig.
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 Propagation = "rshared" PropagationShared Propagation = "shared" // PropagationRSlave RSLAVE PropagationRSlave Propagation = "rslave" // PropagationSlave SLAVE PropagationSlave Propagation = "slave" )
type Redirect ¶
func (*Redirect) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redirect.
type Retry ¶
type Retry struct {
Attempts int `json:"attempts,omitempty"`
TimeoutMillis int `json:"timeoutMillis,omitempty"`
}
func (*Retry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Retry.
type Rewrite ¶
func (*Rewrite) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rewrite.
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 (*RouteSet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSet.
func (*RouteSet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteSetChangeHandlerFunc ¶
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 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 ¶
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(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 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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec.
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"`
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceChangeHandlerFunc ¶
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 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 ¶
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(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 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 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 ¶
func (in *ServiceUnversionedSpec) DeepCopy() *ServiceUnversionedSpec
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stack.
func (*Stack) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 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 ¶
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(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 StackList ¶
type StackList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Stack
}
func (*StackList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackList.
func (*StackList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StackLister ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackSpec.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tmpfs.
func (*Tmpfs) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeChangeHandlerFunc ¶
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 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 ¶
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(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 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 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