request

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateProvision = "provision"
	StateReady     = "ready"
	StateDestroy   = "destroy"
	StateCreated   = "created"
	StateDestroyed = "destroyed"
	StateError     = "error"
)
View Source
const (
	DEFAULT_DESCRIPTION_LIMIT = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterQuotasOptions

type ClusterQuotasOptions struct{}

swagger:model request_cluster_update_quotas

type ClusterRequest

type ClusterRequest struct{}

func (ClusterRequest) UpdateOptions

func (ClusterRequest) UpdateOptions() *ClusterUpdateOptions

type ClusterUpdateOptions

type ClusterUpdateOptions struct {
	Description *string               `json:"description"`
	Quotas      *ClusterQuotasOptions `json:"quotas"`
}

ClusterUpdateOptions represents options availible to update in cluster

swagger:model request_cluster_update

func (*ClusterUpdateOptions) DecodeAndValidate

func (c *ClusterUpdateOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*ClusterUpdateOptions) ToJson

func (s *ClusterUpdateOptions) ToJson() ([]byte, error)

func (*ClusterUpdateOptions) Validate

func (c *ClusterUpdateOptions) Validate() *errors.Err

type ConfigManifest

type ConfigManifest struct {
	Meta ConfigManifestMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
	Spec ConfigManifestSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*ConfigManifest) DecodeAndValidate

func (v *ConfigManifest) DecodeAndValidate(reader io.Reader) *errors.Err

func (*ConfigManifest) FromJson

func (v *ConfigManifest) FromJson(data []byte) error

func (*ConfigManifest) FromYaml

func (v *ConfigManifest) FromYaml(data []byte) error

func (*ConfigManifest) GetManifest

func (v *ConfigManifest) GetManifest() *types.ConfigManifest

func (*ConfigManifest) SetConfigMeta

func (v *ConfigManifest) SetConfigMeta(cfg *types.Config)

func (*ConfigManifest) SetConfigSpec

func (v *ConfigManifest) SetConfigSpec(cfg *types.Config)

SetConfigSpec - set config spec from manifest TODO: check if config spec is updated => update Meta.Updated or skip

func (*ConfigManifest) ToJson

func (v *ConfigManifest) ToJson() ([]byte, error)

func (*ConfigManifest) ToYaml

func (v *ConfigManifest) ToYaml() ([]byte, error)

func (*ConfigManifest) Validate

func (v *ConfigManifest) Validate() *errors.Err

type ConfigManifestData

type ConfigManifestData struct {
	Key   string `json:"key,omitempty" yaml:"key,omitempty"`
	Value string `json:"value,omitempty" yaml:"value,omitempty"`
}

type ConfigManifestMeta

type ConfigManifestMeta struct {
	RuntimeMeta `yaml:",inline"`
	Namespace   *string `json:"namespace" yaml:"namespace"`
}

type ConfigManifestSpec

type ConfigManifestSpec struct {
	// Template volume types
	Type string `json:"type,omitempty" yaml:"type,omitempty"`
	// Tempate volume selector
	Data map[string]string `json:"data,omitempty" yaml:"data,omitempty"`
}

type ConfigRemoveOptions

type ConfigRemoveOptions struct {
	Force bool
}

func (*ConfigRemoveOptions) Validate

func (v *ConfigRemoveOptions) Validate() *errors.Err

type ConfigRequest

type ConfigRequest struct{}

func (ConfigRequest) Manifest

func (ConfigRequest) Manifest() *ConfigManifest

func (ConfigRequest) RemoveOptions

func (ConfigRequest) RemoveOptions() *ConfigRemoveOptions

type DeploymentRequest

type DeploymentRequest struct{}

func (DeploymentRequest) UpdateOptions

func (DeploymentRequest) UpdateOptions() *DeploymentUpdateOptions

type DeploymentUpdateOptions

type DeploymentUpdateOptions struct {
	// Number of replicas
	// required: false
	Replicas *int `json:"replicas"`
	// Deployment status for update
	// required: false
	Status *struct {
		State   string `json:"state"`
		Message string `json:"message"`
	} `json:"status"`
}

DeploymentUpdateOptions represents options availible to update in deployment

swagger:model request_deployment_update

func (*DeploymentUpdateOptions) DecodeAndValidate

func (d *DeploymentUpdateOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*DeploymentUpdateOptions) ToJson

func (s *DeploymentUpdateOptions) ToJson() ([]byte, error)

func (*DeploymentUpdateOptions) Validate

func (d *DeploymentUpdateOptions) Validate() *errors.Err

type DiscoveryConnectOptions

type DiscoveryConnectOptions struct {
	Info    types.DiscoveryInfo   `json:"info"`
	Status  types.DiscoveryStatus `json:"status"`
	Network types.NetworkState    `json:"network"`
}

swagger:model request_ingress_connect

func (*DiscoveryConnectOptions) DecodeAndValidate

func (n *DiscoveryConnectOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*DiscoveryConnectOptions) ToJson

func (s *DiscoveryConnectOptions) ToJson() string

func (*DiscoveryConnectOptions) Validate

func (n *DiscoveryConnectOptions) Validate() *errors.Err

type DiscoveryMeta

type DiscoveryMeta struct {
}

type DiscoveryRemoveOptions

type DiscoveryRemoveOptions struct {
	Force bool `json:"force"`
}

swagger:ignore swagger:model request_node_remove

func (*DiscoveryRemoveOptions) ToJson

func (s *DiscoveryRemoveOptions) ToJson() string

func (*DiscoveryRemoveOptions) Validate

func (n *DiscoveryRemoveOptions) Validate() *errors.Err

type DiscoveryRequest

type DiscoveryRequest struct{}

func (DiscoveryRequest) DiscoveryConnectOptions

func (DiscoveryRequest) DiscoveryConnectOptions() *DiscoveryConnectOptions

func (DiscoveryRequest) DiscoveryStatusOptions

func (DiscoveryRequest) DiscoveryStatusOptions() *DiscoveryStatusOptions

func (DiscoveryRequest) RemoveOptions

func (DiscoveryRequest) RemoveOptions() *DiscoveryRemoveOptions

type DiscoveryStatusOptions

type DiscoveryStatusOptions types.DiscoveryStatus

func (*DiscoveryStatusOptions) DecodeAndValidate

func (n *DiscoveryStatusOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*DiscoveryStatusOptions) ToJson

func (s *DiscoveryStatusOptions) ToJson() string

func (*DiscoveryStatusOptions) Validate

func (n *DiscoveryStatusOptions) Validate() *errors.Err

type EndpointCreateOptions

type EndpointCreateOptions struct{}

func (*EndpointCreateOptions) DecodeAndValidate

func (t *EndpointCreateOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*EndpointCreateOptions) ToJson

func (t *EndpointCreateOptions) ToJson() ([]byte, error)

func (*EndpointCreateOptions) Validate

func (t *EndpointCreateOptions) Validate() *errors.Err

type EndpointRemoveOptions

type EndpointRemoveOptions struct {
	Force bool
}

func (*EndpointRemoveOptions) Validate

func (t *EndpointRemoveOptions) Validate() *errors.Err

type EndpointRequest

type EndpointRequest struct{}

func (EndpointRequest) CreateOptions

func (EndpointRequest) CreateOptions() *EndpointCreateOptions

func (EndpointRequest) RemoveOptions

func (EndpointRequest) RemoveOptions() *EndpointRemoveOptions

func (EndpointRequest) UpdateOptions

func (EndpointRequest) UpdateOptions() *EndpointUpdateOptions

type EndpointUpdateOptions

type EndpointUpdateOptions struct{}

func (*EndpointUpdateOptions) DecodeAndValidate

func (t *EndpointUpdateOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*EndpointUpdateOptions) ToJson

func (t *EndpointUpdateOptions) ToJson() ([]byte, error)

func (*EndpointUpdateOptions) Validate

func (t *EndpointUpdateOptions) Validate() *errors.Err

type EventsRequest

type EventsRequest struct{}

type IRequest

type IRequest interface {
	Cluster() *ClusterRequest
	Deployment() *DeploymentRequest
	Namespace() *NamespaceRequest
	Node() *NodeRequest
	Endpoint() *EndpointRequest
	Route() *RouteRequest
	Service() *ServiceRequest
	Secret() *SecretRequest
	Config() *ConfigRequest
	Volume() *VolumeRequest
	Ingress() *IngressRequest
	Discovery() *DiscoveryRequest
}

type IngressConnectOptions

type IngressConnectOptions struct {
	Info    types.IngressInfo   `json:"info"`
	Status  types.IngressStatus `json:"status"`
	Network types.NetworkState  `json:"network"`
}

swagger:model request_ingress_connect

func (*IngressConnectOptions) DecodeAndValidate

func (n *IngressConnectOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*IngressConnectOptions) ToJson

func (s *IngressConnectOptions) ToJson() string

func (*IngressConnectOptions) Validate

func (n *IngressConnectOptions) Validate() *errors.Err

type IngressRemoveOptions

type IngressRemoveOptions struct {
	Force bool `json:"force"`
}

swagger:ignore swagger:model request_ingress_remove

func (*IngressRemoveOptions) ToJson

func (s *IngressRemoveOptions) ToJson() string

func (*IngressRemoveOptions) Validate

func (n *IngressRemoveOptions) Validate() *errors.Err

type IngressRequest

type IngressRequest struct{}

func (IngressRequest) IngressConnectOptions

func (IngressRequest) IngressConnectOptions() *IngressConnectOptions

func (IngressRequest) IngressStatusOptions

func (IngressRequest) IngressStatusOptions() *IngressStatusOptions

func (IngressRequest) RemoveOptions

func (IngressRequest) RemoveOptions() *IngressRemoveOptions

type IngressStatusOptions

type IngressStatusOptions struct {
	Status types.IngressStatus           `json:"status"`
	Routes map[string]*types.RouteStatus `json:"routes"`
}

func (*IngressStatusOptions) DecodeAndValidate

func (n *IngressStatusOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*IngressStatusOptions) ToJson

func (s *IngressStatusOptions) ToJson() string

func (*IngressStatusOptions) Validate

func (n *IngressStatusOptions) Validate() *errors.Err

type ManifestSpecNetwork

type ManifestSpecNetwork struct {
	IP    *string  `json:"ip,omitempty" yaml:"ip,omitempty"`
	Ports []string `json:"ports,omitempty" yaml:"ports,omitempty"`
}

type ManifestSpecSelector

type ManifestSpecSelector struct {
	Node   string            `json:"node,omitempty" yaml:"node,omitempty"`
	Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
}

func (ManifestSpecSelector) GetSpec

type ManifestSpecStrategy

type ManifestSpecStrategy struct {
	Type *string `json:"type,omitempty" yaml:"type,omitempty"`
}

type ManifestSpecTemplate

type ManifestSpecTemplate struct {
	Containers []ManifestSpecTemplateContainer `json:"containers,omitempty" yaml:"containers,omitempty"`
	Volumes    []ManifestSpecTemplateVolume    `json:"volumes,omitempty" yaml:"volumes,omitempty"`
}

func (ManifestSpecTemplate) GetSpec

type ManifestSpecTemplateConfigVolume

type ManifestSpecTemplateConfigVolume struct {
	// Secret name to mount
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	// Secret file key
	Binds []ManifestSpecTemplateConfigVolumeBind `json:"binds,omitempty" yaml:"binds,omitempty"`
}

type ManifestSpecTemplateConfigVolumeBind

type ManifestSpecTemplateConfigVolumeBind struct {
	Key  string `json:"key,omitempty" yaml:"key"`
	File string `json:"file,omitempty" yaml:"file"`
}

type ManifestSpecTemplateContainer

type ManifestSpecTemplateContainer struct {
	Name          string                                 `json:"name,omitempty" yaml:"name,omitempty"`
	Command       string                                 `json:"command,omitempty" yaml:"command,omitempty"`
	Workdir       string                                 `json:"workdir,omitempty" yaml:"workdir,omitempty"`
	Entrypoint    string                                 `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
	Args          []string                               `json:"args,omitempty" yaml:"args,omitempty"`
	Ports         []string                               `json:"ports,omitempty" yaml:"ports,omitempty"`
	Env           []ManifestSpecTemplateContainerEnv     `json:"env,omitempty" yaml:"env,omitempty"`
	Volumes       []ManifestSpecTemplateContainerVolume  `json:"volumes,omitempty" yaml:"volumes,omitempty"`
	Image         ManifestSpecTemplateContainerImage     `json:"image,omitempty" yaml:"image,omitempty"`
	Resources     ManifestSpecTemplateContainerResources `json:"resources,omitempty" yaml:"resources,omitempty"`
	RestartPolicy ManifestSpecTemplateRestartPolicy      `json:"restart,omitempty" yaml:"restart,omitempty"`
}

func (ManifestSpecTemplateContainer) GetSpec

type ManifestSpecTemplateContainerEnv

type ManifestSpecTemplateContainerEnv struct {
	Name   string                                 `json:"name,omitempty" yaml:"name,omitempty"`
	Value  string                                 `json:"value,omitempty" yaml:"value,omitempty"`
	Secret ManifestSpecTemplateContainerEnvSecret `json:"secret,omitempty" yaml:"secret,omitempty"`
	Config ManifestSpecTemplateContainerEnvConfig `json:"config,omitempty" yaml:"config,omitempty"`
}

type ManifestSpecTemplateContainerEnvConfig

type ManifestSpecTemplateContainerEnvConfig struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	Key  string `json:"key,omitempty" yaml:"key,omitempty"`
}

type ManifestSpecTemplateContainerEnvSecret

type ManifestSpecTemplateContainerEnvSecret struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	Key  string `json:"key,omitempty" yaml:"key,omitempty"`
}

type ManifestSpecTemplateContainerImage

type ManifestSpecTemplateContainerImage struct {
	Name   string `json:"name,omitempty" yaml:"name,omitempty"`
	Secret string `json:"secret,omitempty" yaml:"secret,omitempty"`
}

type ManifestSpecTemplateContainerResource

type ManifestSpecTemplateContainerResource struct {
	// CPU resource option
	CPU string `json:"cpu,omitempty" yaml:"cpu,omitempty"`
	// RAM resource option
	RAM string `json:"ram,omitempty" yaml:"ram,omitempty"`
}

type ManifestSpecTemplateContainerResources

type ManifestSpecTemplateContainerResources struct {
	// Limit resources
	Limits ManifestSpecTemplateContainerResource `json:"limits,omitempty" yaml:"limits,omitempty"`
	// Request resources
	Request ManifestSpecTemplateContainerResource `json:"quota,omitempty" yaml:"quota,omitempty"`
}

type ManifestSpecTemplateContainerVolume

type ManifestSpecTemplateContainerVolume struct {
	// Volume name
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	// Volume mount mode
	Mode string `json:"mode,omitempty" yaml:"mode,omitempty"`
	// Volume mount path
	Path string `json:"path,omitempty" yaml:"path,omitempty"`
}

type ManifestSpecTemplateRestartPolicy

type ManifestSpecTemplateRestartPolicy struct {
	Policy  string `json:"policy,omitempty" yaml:"policy"`
	Attempt int    `json:"attempt,omitempty" yaml:"attempt"`
}

type ManifestSpecTemplateSecretVolume

type ManifestSpecTemplateSecretVolume struct {
	// Secret name to mount
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	// Secret file key
	Binds []ManifestSpecTemplateSecretVolumeBind `json:"binds,omitempty" yaml:"bindsk,omitempty"`
}

type ManifestSpecTemplateSecretVolumeBind

type ManifestSpecTemplateSecretVolumeBind struct {
	Key  string `json:"key,omitempty" yaml:"key,omitempty"`
	File string `json:"file,omitempty" yaml:"file,omitempty"`
}

type ManifestSpecTemplateVolume

type ManifestSpecTemplateVolume struct {
	// Template volume name
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	// Template volume types
	Type string `json:"type,omitempty" yaml:"type,omitempty"`
	// Template volume from persistent volume
	Volume ManifestSpecTemplateVolumeClaim `json:"volume,omitempty" yaml:"volume,omitempty"`
	// Template volume from secret type
	Secret ManifestSpecTemplateSecretVolume `json:"secret,omitempty" yaml:"secret,omitempty"`
	// Template volume from config type
	Config ManifestSpecTemplateConfigVolume `json:"config,omitempty" yaml:"config,omitempty"`
}

func (ManifestSpecTemplateVolume) GetSpec

type ManifestSpecTemplateVolumeClaim

type ManifestSpecTemplateVolumeClaim struct {
	// Persistent volume name to mount
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
	// Persistent volume subpath
	Subpath string `json:"subpath,omitempty" yaml:"subpath,omitempty"`
}

type NamespaceManifest

type NamespaceManifest struct {
	Meta NamespaceManifestMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
	Spec NamespaceManifestSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*NamespaceManifest) DecodeAndValidate

func (s *NamespaceManifest) DecodeAndValidate(reader io.Reader) *errors.Err

func (*NamespaceManifest) FromJson

func (s *NamespaceManifest) FromJson(data []byte) error

func (*NamespaceManifest) FromYaml

func (s *NamespaceManifest) FromYaml(data []byte) error

func (*NamespaceManifest) SetNamespaceMeta

func (s *NamespaceManifest) SetNamespaceMeta(ns *types.Namespace)

func (*NamespaceManifest) SetNamespaceSpec

func (s *NamespaceManifest) SetNamespaceSpec(ns *types.Namespace)

func (*NamespaceManifest) ToJson

func (s *NamespaceManifest) ToJson() ([]byte, error)

func (*NamespaceManifest) ToYaml

func (s *NamespaceManifest) ToYaml() ([]byte, error)

func (*NamespaceManifest) Validate

func (s *NamespaceManifest) Validate() *errors.Err

type NamespaceManifestMeta

type NamespaceManifestMeta struct {
	RuntimeMeta `yaml:",inline"`
}

type NamespaceManifestSpec

type NamespaceManifestSpec struct {
	Domain    *string                    `json:"domain"`
	Resources *NamespaceResourcesOptions `json:"resources"`
}

type NamespaceRemoveOptions

type NamespaceRemoveOptions struct {
	Force bool `json:"force"`
}

swagger:model request_namespace_remove

func (*NamespaceRemoveOptions) ToJson

func (n *NamespaceRemoveOptions) ToJson() ([]byte, error)

func (*NamespaceRemoveOptions) Validate

func (n *NamespaceRemoveOptions) Validate() *errors.Err

type NamespaceRequest

type NamespaceRequest struct{}

func (NamespaceRequest) Manifest

func (NamespaceRequest) Manifest() *NamespaceManifest

func (NamespaceRequest) RemoveOptions

func (NamespaceRequest) RemoveOptions() *NamespaceRemoveOptions

type NamespaceResourceOptions

type NamespaceResourceOptions struct {
	RAM     *string `json:"ram"`
	CPU     *string `json:"cpu"`
	Storage *string `json:"storage"`
}

swagger:model request_namespace_quotas

type NamespaceResourcesOptions

type NamespaceResourcesOptions struct {
	Request *NamespaceResourceOptions `json:"request"`
	Limits  *NamespaceResourceOptions `json:"limits"`
}

type NodeConnectOptions

type NodeConnectOptions struct {
	Info    types.NodeInfo     `json:"info"`
	Status  types.NodeStatus   `json:"status"`
	Network types.NetworkState `json:"network"`
	TLS     bool               `json:"tls"`
	SSL     *SSL               `json:"ssl"`
}

swagger:model request_node_connect

func (*NodeConnectOptions) DecodeAndValidate

func (n *NodeConnectOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*NodeConnectOptions) ToJson

func (s *NodeConnectOptions) ToJson() string

func (*NodeConnectOptions) Validate

func (n *NodeConnectOptions) Validate() *errors.Err

type NodeLogsOptions

type NodeLogsOptions struct {
	Follow bool `json:"follow"`
}

swagger:ignore swagger:model request_node_logs

type NodeMetaOptions

type NodeMetaOptions struct {
	Meta *types.NodeUpdateMetaOptions `json:"meta"`
}

swagger:model request_node_meta

func (*NodeMetaOptions) DecodeAndValidate

func (n *NodeMetaOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*NodeMetaOptions) ToJson

func (s *NodeMetaOptions) ToJson() string

func (*NodeMetaOptions) Validate

func (n *NodeMetaOptions) Validate() *errors.Err

type NodePodStatusOptions

type NodePodStatusOptions struct {
	// Pod state
	State string `json:"state" yaml:"state"`
	// Pod state
	Status string `json:"status" yaml:"status"`
	// Pod state
	Running bool `json:"running" yaml:"running"`
	// Pod state message
	Message string `json:"message" yaml:"message"`
	// Pod steps
	Steps types.PodSteps `json:"steps" yaml:"steps"`
	// Pod network
	Network types.PodNetwork `json:"network" yaml:"network"`
	// Pod containers
	Containers map[string]*types.PodContainer `json:"containers" yaml:"containers"`
}

swagger:model request_node_pod_status

func (*NodePodStatusOptions) DecodeAndValidate

func (n *NodePodStatusOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*NodePodStatusOptions) ToJson

func (s *NodePodStatusOptions) ToJson() string

func (*NodePodStatusOptions) Validate

func (n *NodePodStatusOptions) Validate() *errors.Err

type NodeRemoveOptions

type NodeRemoveOptions struct {
	Force bool `json:"force"`
}

swagger:ignore swagger:model request_node_remove

func (*NodeRemoveOptions) ToJson

func (s *NodeRemoveOptions) ToJson() string

func (*NodeRemoveOptions) Validate

func (n *NodeRemoveOptions) Validate() *errors.Err

type NodeRequest

type NodeRequest struct{}

func (NodeRequest) NodeConnectOptions

func (NodeRequest) NodeConnectOptions() *NodeConnectOptions

func (NodeRequest) NodePodStatusOptions

func (NodeRequest) NodePodStatusOptions() *NodePodStatusOptions

func (NodeRequest) NodeRouteStatusOptions

func (NodeRequest) NodeRouteStatusOptions() *NodeRouteStatusOptions

func (NodeRequest) NodeStatusOptions

func (NodeRequest) NodeStatusOptions() *NodeStatusOptions

func (NodeRequest) NodeVolumeStatusOptions

func (NodeRequest) NodeVolumeStatusOptions() *NodeVolumeStatusOptions

func (NodeRequest) RemoveOptions

func (NodeRequest) RemoveOptions() *NodeRemoveOptions

func (NodeRequest) UpdateOptions

func (NodeRequest) UpdateOptions() *NodeMetaOptions

type NodeResourcesOptions

type NodeResourcesOptions struct {
	// Node state capacity
	Capacity types.NodeResources `json:"capacity"`
	// Node state allocated
	Allocated types.NodeResources `json:"allocated"`
}

swagger:model request_node_resources

type NodeRouteStatusOptions

type NodeRouteStatusOptions struct {
	// route status state
	State string `json:"state" yaml:"state"`
	// route status message
	Message string `json:"message" yaml:"message"`
}

swagger:model request_node_route_status

func (*NodeRouteStatusOptions) DecodeAndValidate

func (n *NodeRouteStatusOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*NodeRouteStatusOptions) ToJson

func (n *NodeRouteStatusOptions) ToJson() string

func (*NodeRouteStatusOptions) Validate

func (n *NodeRouteStatusOptions) Validate() *errors.Err

type NodeStatusOptions

type NodeStatusOptions struct {
	// Node interface options
	State types.NodeStatusState `json:"state"`
	// Pods statuses
	Pods map[string]*NodePodStatusOptions `json:"pods"`
	// Volumes statuses
	Volumes map[string]*NodeVolumeStatusOptions `json:"volumes"`
	// Node resources
	Resources NodeResourcesOptions `json:"resources"`
}

swagger:model request_node_status

func (*NodeStatusOptions) DecodeAndValidate

func (n *NodeStatusOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*NodeStatusOptions) ToJson

func (s *NodeStatusOptions) ToJson() string

func (*NodeStatusOptions) Validate

func (n *NodeStatusOptions) Validate() *errors.Err

type NodeVolumeStatusOptions

type NodeVolumeStatusOptions struct {
	// route status state
	State string `json:"state" yaml:"state"`
	// route status message
	Message string `json:"message" yaml:"message"`
}

swagger:model request_node_volume_status

func (*NodeVolumeStatusOptions) DecodeAndValidate

func (n *NodeVolumeStatusOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*NodeVolumeStatusOptions) ToJson

func (s *NodeVolumeStatusOptions) ToJson() string

func (*NodeVolumeStatusOptions) Validate

func (n *NodeVolumeStatusOptions) Validate() *errors.Err

type PodLogsOptions

type PodLogsOptions struct {
	Container string `json:"container"`
	Follow    bool   `json:"follow"`
}

type PodManifest

type PodManifest struct {
	Meta PodManifestMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
	Spec PodManifestSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*PodManifest) FromJson

func (s *PodManifest) FromJson(data []byte) error

func (*PodManifest) FromYaml

func (s *PodManifest) FromYaml(data []byte) error

func (*PodManifest) GetManifest

func (s *PodManifest) GetManifest() *types.PodManifest

func (*PodManifest) SetPodMeta

func (s *PodManifest) SetPodMeta(svc *types.Pod)

func (*PodManifest) SetPodSpec

func (s *PodManifest) SetPodSpec(pod *types.Pod)

func (*PodManifest) ToJson

func (s *PodManifest) ToJson() ([]byte, error)

func (*PodManifest) ToYaml

func (s *PodManifest) ToYaml() ([]byte, error)

type PodManifestMeta

type PodManifestMeta struct {
	RuntimeMeta `yaml:",inline"`
}

type PodManifestSpec

type PodManifestSpec struct {
	Selector *ManifestSpecSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
	Template *ManifestSpecTemplate `json:"template,omitempty" yaml:"template,omitempty"`
}

type Request

type Request struct{}

func (Request) Cluster

func (Request) Cluster() *ClusterRequest

func (Request) Config

func (Request) Config() *ConfigRequest

func (Request) Deployment

func (Request) Deployment() *DeploymentRequest

func (Request) Discovery

func (Request) Discovery() *DiscoveryRequest

func (Request) Endpoint

func (Request) Endpoint() *EndpointRequest

func (Request) Ingress

func (Request) Ingress() *IngressRequest

func (Request) Namespace

func (Request) Namespace() *NamespaceRequest

func (Request) Node

func (Request) Node() *NodeRequest

func (Request) Route

func (Request) Route() *RouteRequest

func (Request) Secret

func (Request) Secret() *SecretRequest

func (Request) Service

func (Request) Service() *ServiceRequest

func (Request) Volume

func (Request) Volume() *VolumeRequest

type RouteManifest

type RouteManifest struct {
	Meta RouteManifestMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
	Spec RouteManifestSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*RouteManifest) DecodeAndValidate

func (r *RouteManifest) DecodeAndValidate(reader io.Reader) *errors.Err

func (*RouteManifest) FromJson

func (r *RouteManifest) FromJson(data []byte) error

func (*RouteManifest) FromYaml

func (r *RouteManifest) FromYaml(data []byte) error

func (*RouteManifest) SetRouteMeta

func (r *RouteManifest) SetRouteMeta(route *types.Route)

func (*RouteManifest) SetRouteSpec

func (r *RouteManifest) SetRouteSpec(route *types.Route, svc *types.ServiceList)

func (*RouteManifest) ToJson

func (r *RouteManifest) ToJson() ([]byte, error)

func (*RouteManifest) ToYaml

func (r *RouteManifest) ToYaml() ([]byte, error)

func (*RouteManifest) Validate

func (r *RouteManifest) Validate() *errors.Err

type RouteManifestMeta

type RouteManifestMeta struct {
	RuntimeMeta `yaml:",inline"`
}

type RouteManifestSpec

type RouteManifestSpec struct {
	Port  uint16                         `json:"port" yaml:"port"`
	Rules []RouteManifestSpecRulesOption `json:"rules" yaml:"rules"`
}

swagger:model request_route_create

type RouteManifestSpecRulesOption

type RouteManifestSpecRulesOption struct {
	Service string `json:"service" yaml:"service"`
	Path    string `json:"path" yaml:"path"`
	Port    int    `json:"port" yaml:"port"`
}

swagger:model request_route_rules

type RouteRemoveOptions

type RouteRemoveOptions struct {
	Force bool `json:"force"`
}

swagger:ignore swagger:model request_route_remove

func (*RouteRemoveOptions) Validate

func (r *RouteRemoveOptions) Validate() *errors.Err

type RouteRequest

type RouteRequest struct{}

func (RouteRequest) Manifest

func (RouteRequest) Manifest() *RouteManifest

func (RouteRequest) RemoveOptions

func (RouteRequest) RemoveOptions() *RouteRemoveOptions

type Runtime

type Runtime struct {
	Kind    string `json:"kind" yaml:"kind"`
	Version string `json:"version" yaml:"version"`
	Raw     []byte
}

type RuntimeMeta

type RuntimeMeta struct {
	Name        *string           `json:"name,omitempty" yaml:"name,omitempty"`
	Description *string           `json:"description,omitempty",yaml:"description,omitempty"`
	Labels      map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
}

type SSL

type SSL struct {
	CA   []byte `json:"ca"`
	Cert []byte `json:"cert"`
	Key  []byte `json:"key"`
}

type SecretManifest

type SecretManifest struct {
	Meta SecretManifestMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
	Spec SecretManifestSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*SecretManifest) DecodeAndValidate

func (v *SecretManifest) DecodeAndValidate(reader io.Reader) *errors.Err

func (*SecretManifest) FromJson

func (v *SecretManifest) FromJson(data []byte) error

func (*SecretManifest) FromYaml

func (v *SecretManifest) FromYaml(data []byte) error

func (*SecretManifest) GetManifest

func (v *SecretManifest) GetManifest() *types.SecretManifest

func (*SecretManifest) SetAuthData

func (v *SecretManifest) SetAuthData(username, password string)

func (*SecretManifest) SetSecretMeta

func (v *SecretManifest) SetSecretMeta(cfg *types.Secret)

func (*SecretManifest) SetSecretSpec

func (v *SecretManifest) SetSecretSpec(s *types.Secret)

SetSecretSpec - set config spec from manifest TODO: check if config spec is updated => update Meta.Updated or skip

func (*SecretManifest) ToJson

func (v *SecretManifest) ToJson() ([]byte, error)

func (*SecretManifest) ToYaml

func (v *SecretManifest) ToYaml() ([]byte, error)

func (*SecretManifest) Validate

func (v *SecretManifest) Validate() *errors.Err

type SecretManifestMeta

type SecretManifestMeta struct {
	RuntimeMeta `yaml:",inline"`
	Namespace   *string `json:"namespace" yaml:"namespace"`
}

type SecretManifestSpec

type SecretManifestSpec struct {
	// Template volume types
	Type string `json:"type,omitempty" yaml:"type,omitempty"`
	// Tempate volume selector
	Data map[string]string `json:"data,omitempty" yaml:"data,omitempty"`
}

type SecretRemoveOptions

type SecretRemoveOptions struct {
	Force bool `json:"force"`
}

swagger:ignore

func (*SecretRemoveOptions) Validate

func (s *SecretRemoveOptions) Validate() *errors.Err

type SecretRequest

type SecretRequest struct{}

func (SecretRequest) Manifest

func (SecretRequest) Manifest() *SecretManifest

func (SecretRequest) RemoveOptions

func (SecretRequest) RemoveOptions() *SecretRemoveOptions

type ServiceLogsOptions

type ServiceLogsOptions struct {
	Deployment string `json:"deployment"`
	Pod        string `json:"pod"`
	Container  string `json:"container"`
	Follow     bool   `json:"follow"`
}

swagger:ignore swagger:model request_service_logs

type ServiceManifest

type ServiceManifest struct {
	Meta ServiceManifestMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
	Spec ServiceManifestSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*ServiceManifest) DecodeAndValidate

func (s *ServiceManifest) DecodeAndValidate(reader io.Reader) *errors.Err

func (*ServiceManifest) FromJson

func (s *ServiceManifest) FromJson(data []byte) error

func (*ServiceManifest) FromYaml

func (s *ServiceManifest) FromYaml(data []byte) error

func (*ServiceManifest) GetManifest

func (s *ServiceManifest) GetManifest() *types.ServiceManifest

func (*ServiceManifest) SetServiceMeta

func (s *ServiceManifest) SetServiceMeta(svc *types.Service)

func (*ServiceManifest) SetServiceSpec

func (s *ServiceManifest) SetServiceSpec(svc *types.Service) (err error)

func (*ServiceManifest) ToJson

func (s *ServiceManifest) ToJson() ([]byte, error)

func (*ServiceManifest) ToYaml

func (s *ServiceManifest) ToYaml() ([]byte, error)

func (*ServiceManifest) Validate

func (s *ServiceManifest) Validate() *errors.Err

type ServiceManifestMeta

type ServiceManifestMeta struct {
	RuntimeMeta `yaml:",inline"`
}

type ServiceManifestSpec

type ServiceManifestSpec struct {
	Replicas *int                  `json:"replicas,omitempty" yaml:"replicas,omitempty"`
	Selector *ManifestSpecSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
	Network  *ManifestSpecNetwork  `json:"network,omitempty" yaml:"network,omitempty"`
	Strategy *ManifestSpecStrategy `json:"strategy,omitempty" yaml:"strategy,omitempty"`
	Template *ManifestSpecTemplate `json:"template,omitempty" yaml:"template,omitempty"`
}

type ServiceRemoveOptions

type ServiceRemoveOptions struct {
	Force bool `json:"force"`
}

swagger:ignore swagger:model request_service_remove

func (*ServiceRemoveOptions) Validate

func (s *ServiceRemoveOptions) Validate() *errors.Err

type ServiceRequest

type ServiceRequest struct{}

func (ServiceRequest) Manifest

func (ServiceRequest) Manifest() *ServiceManifest

func (ServiceRequest) RemoveOptions

func (ServiceRequest) RemoveOptions() *ServiceRemoveOptions

type VolumeManifest

type VolumeManifest struct {
	Meta VolumeManifestMeta `json:"meta,omitempty" yaml:"meta,omitempty"`
	Spec VolumeManifestSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

func (*VolumeManifest) DecodeAndValidate

func (v *VolumeManifest) DecodeAndValidate(reader io.Reader) *errors.Err

func (*VolumeManifest) FromJson

func (v *VolumeManifest) FromJson(data []byte) error

func (*VolumeManifest) FromYaml

func (v *VolumeManifest) FromYaml(data []byte) error

func (VolumeManifest) GetManifest

func (m VolumeManifest) GetManifest() *types.VolumeManifest

func (*VolumeManifest) SetVolumeMeta

func (v *VolumeManifest) SetVolumeMeta(vol *types.Volume)

func (*VolumeManifest) SetVolumeSpec

func (v *VolumeManifest) SetVolumeSpec(vol *types.Volume)

func (*VolumeManifest) ToJson

func (v *VolumeManifest) ToJson() ([]byte, error)

func (*VolumeManifest) ToYaml

func (v *VolumeManifest) ToYaml() ([]byte, error)

func (*VolumeManifest) Validate

func (v *VolumeManifest) Validate() *errors.Err

type VolumeManifestMeta

type VolumeManifestMeta struct {
	RuntimeMeta `yaml:",inline"`
}

type VolumeManifestSpec

type VolumeManifestSpec struct {
	// Template volume types
	Type string `json:"type,omitempty" yaml:"type,omitempty"`
	// Template volume selector
	Selector ManifestSpecSelector `json:"selector,omitempty" yaml:"selector,omitempty"`
	//  Volume Resources
	Capacity VolumeManifestSpecCapacity `json:"capacity,omitempty" yaml:"capacity,omitempty"`
	// Volume access mode
	AccessMode string `json:"access_mode,omitempty" yaml:"access_mode,omitempty"`
}

type VolumeManifestSpecCapacity

type VolumeManifestSpecCapacity struct {
	Storage string `json:"storage,omitempty" yaml:"storage,omitempty"`
}

type VolumeRemoveOptions

type VolumeRemoveOptions struct {
	Force bool
}

func (*VolumeRemoveOptions) Validate

func (v *VolumeRemoveOptions) Validate() *errors.Err

type VolumeRequest

type VolumeRequest struct{}

func (VolumeRequest) Manifest

func (VolumeRequest) Manifest() *VolumeManifest

func (VolumeRequest) RemoveOptions

func (VolumeRequest) RemoveOptions() *VolumeRemoveOptions

Jump to

Keyboard shortcuts

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