models

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster added in v0.1.2

type Cluster struct {

	// The time when this cluster was registered with Signadot.
	CreatedAt string `json:"createdAt,omitempty"`

	// The name of the cluster.
	Name string `json:"name,omitempty"`

	// operator
	Operator *ClusterOperator `json:"operator,omitempty"`
}

Cluster cluster

swagger:model Cluster

func (*Cluster) ContextValidate added in v0.1.2

func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster based on the context it is used

func (*Cluster) MarshalBinary added in v0.1.2

func (m *Cluster) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Cluster) UnmarshalBinary added in v0.1.2

func (m *Cluster) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Cluster) Validate added in v0.1.2

func (m *Cluster) Validate(formats strfmt.Registry) error

Validate validates this cluster

type ClusterOperator added in v0.2.0

type ClusterOperator struct {

	// The operator version of the cluster.  This may be
	// nil if the cluster has not yet connected to Signadot.
	Version string `json:"version,omitempty"`
}

ClusterOperator cluster operator

swagger:model cluster.Operator

func (*ClusterOperator) ContextValidate added in v0.2.0

func (m *ClusterOperator) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster operator based on context it is used

func (*ClusterOperator) MarshalBinary added in v0.2.0

func (m *ClusterOperator) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterOperator) UnmarshalBinary added in v0.2.0

func (m *ClusterOperator) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterOperator) Validate added in v0.2.0

func (m *ClusterOperator) Validate(formats strfmt.Registry) error

Validate validates this cluster operator

type ClusterToken added in v0.2.0

type ClusterToken struct {

	// The time when this cluster was registered with Signadot.
	CreatedAt string `json:"createdAt,omitempty"`

	// The ID of this token
	ID string `json:"id,omitempty"`

	// A Masked token value.
	MaskedValue string `json:"maskedValue,omitempty"`

	// status
	Status *ClusterTokenStatus `json:"status,omitempty"`

	// The token value.
	Token string `json:"token,omitempty"`
}

ClusterToken cluster token

swagger:model ClusterToken

func (*ClusterToken) ContextValidate added in v0.2.0

func (m *ClusterToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster token based on the context it is used

func (*ClusterToken) MarshalBinary added in v0.2.0

func (m *ClusterToken) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterToken) UnmarshalBinary added in v0.2.0

func (m *ClusterToken) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterToken) Validate added in v0.2.0

func (m *ClusterToken) Validate(formats strfmt.Registry) error

Validate validates this cluster token

type ClusterTokenStatus added in v0.2.0

type ClusterTokenStatus struct {

	// The last time at which this token was used to connect.
	LastConnectedAt string `json:"lastConnectedAt,omitempty"`

	// The last IP address from which this token connected.
	LastConnectedIP string `json:"lastConnectedIp,omitempty"`
}

ClusterTokenStatus cluster token status

swagger:model ClusterTokenStatus

func (*ClusterTokenStatus) ContextValidate added in v0.2.0

func (m *ClusterTokenStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster token status based on context it is used

func (*ClusterTokenStatus) MarshalBinary added in v0.2.0

func (m *ClusterTokenStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterTokenStatus) UnmarshalBinary added in v0.2.0

func (m *ClusterTokenStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterTokenStatus) Validate added in v0.2.0

func (m *ClusterTokenStatus) Validate(formats strfmt.Registry) error

Validate validates this cluster token status

type EmptyResponse added in v0.2.0

type EmptyResponse interface{}

EmptyResponse empty response

swagger:model EmptyResponse

type ErrorResponse added in v0.2.0

type ErrorResponse struct {

	// error
	Error string `json:"error,omitempty"`

	// request Id
	RequestID string `json:"requestId,omitempty"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate added in v0.2.0

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error response based on context it is used

func (*ErrorResponse) MarshalBinary added in v0.2.0

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary added in v0.2.0

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate added in v0.2.0

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ResourceInfo added in v0.3.7

type ResourceInfo struct {

	// Cluster that the resource is created in
	Cluster string `json:"cluster,omitempty"`

	// Name of the created resource
	Name string `json:"name,omitempty"`

	// Name of the sandbox containing the resource
	Sandbox string `json:"sandbox,omitempty"`
}

ResourceInfo resource info

swagger:model ResourceInfo

func (*ResourceInfo) ContextValidate added in v0.3.7

func (m *ResourceInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource info based on context it is used

func (*ResourceInfo) MarshalBinary added in v0.3.7

func (m *ResourceInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourceInfo) UnmarshalBinary added in v0.3.7

func (m *ResourceInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourceInfo) Validate added in v0.3.7

func (m *ResourceInfo) Validate(formats strfmt.Registry) error

Validate validates this resource info

type ResourcePlugin added in v0.3.7

type ResourcePlugin struct {

	// The time at which the resource plugin was created
	CreatedAt string `json:"createdAt,omitempty"`

	// Name of the resource plugin
	Name string `json:"name,omitempty"`

	// spec
	Spec *ResourcepluginSpec `json:"spec,omitempty"`

	// status
	Status *ResourcepluginStatus `json:"status,omitempty"`

	// The time at which the resource plugin was last updated
	UpdatedAt string `json:"updatedAt,omitempty"`
}

ResourcePlugin resource plugin

swagger:model ResourcePlugin

func (*ResourcePlugin) ContextValidate added in v0.3.7

func (m *ResourcePlugin) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resource plugin based on the context it is used

func (*ResourcePlugin) MarshalBinary added in v0.3.7

func (m *ResourcePlugin) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcePlugin) UnmarshalBinary added in v0.3.7

func (m *ResourcePlugin) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcePlugin) Validate added in v0.3.7

func (m *ResourcePlugin) Validate(formats strfmt.Registry) error

Validate validates this resource plugin

type ResourcepluginRunner added in v0.3.7

type ResourcepluginRunner struct {

	// Image for the runner instance
	Image string `json:"image,omitempty"`

	// Namespace to create this runner instance in
	Namespace string `json:"namespace,omitempty"`

	// Pod template overlay
	PodTemplateOverlay string `json:"podTemplateOverlay,omitempty"`
}

ResourcepluginRunner resourceplugin runner

swagger:model resourceplugin.Runner

func (*ResourcepluginRunner) ContextValidate added in v0.3.7

func (m *ResourcepluginRunner) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resourceplugin runner based on context it is used

func (*ResourcepluginRunner) MarshalBinary added in v0.3.7

func (m *ResourcepluginRunner) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginRunner) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginRunner) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginRunner) Validate added in v0.3.7

func (m *ResourcepluginRunner) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin runner

type ResourcepluginSpec added in v0.3.7

type ResourcepluginSpec struct {

	// Create refers to the `create` steps for spinning up the resource
	Create []*ResourcepluginStep `json:"create"`

	// Delete refers to the `delete` steps for spinning up the resource
	Delete []*ResourcepluginStep `json:"delete"`

	// Description for the resource
	Description string `json:"description,omitempty"`

	// runner
	Runner *ResourcepluginRunner `json:"runner,omitempty"`
}

ResourcepluginSpec resourceplugin spec

swagger:model resourceplugin.Spec

func (*ResourcepluginSpec) ContextValidate added in v0.3.7

func (m *ResourcepluginSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourceplugin spec based on the context it is used

func (*ResourcepluginSpec) MarshalBinary added in v0.3.7

func (m *ResourcepluginSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginSpec) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginSpec) Validate added in v0.3.7

func (m *ResourcepluginSpec) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin spec

type ResourcepluginStatus added in v0.3.7

type ResourcepluginStatus struct {

	// Resources created using the resource plugin
	Resources []*ResourceInfo `json:"resources"`
}

ResourcepluginStatus resourceplugin status

swagger:model resourceplugin.Status

func (*ResourcepluginStatus) ContextValidate added in v0.3.7

func (m *ResourcepluginStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourceplugin status based on the context it is used

func (*ResourcepluginStatus) MarshalBinary added in v0.3.7

func (m *ResourcepluginStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginStatus) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginStatus) Validate added in v0.3.7

func (m *ResourcepluginStatus) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin status

type ResourcepluginStep added in v0.3.7

type ResourcepluginStep struct {

	// Inputs for the step
	Inputs []*ResourcepluginStepInput `json:"inputs"`

	// Name for the step
	Name string `json:"name,omitempty"`

	// Outputs for the step
	Outputs []*ResourcepluginStepOut `json:"outputs"`

	// Script to execute in the step
	Script string `json:"script,omitempty"`
}

ResourcepluginStep resourceplugin step

swagger:model resourceplugin.Step

func (*ResourcepluginStep) ContextValidate added in v0.3.7

func (m *ResourcepluginStep) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourceplugin step based on the context it is used

func (*ResourcepluginStep) MarshalBinary added in v0.3.7

func (m *ResourcepluginStep) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginStep) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginStep) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginStep) Validate added in v0.3.7

func (m *ResourcepluginStep) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin step

type ResourcepluginStepInput added in v0.3.7

type ResourcepluginStepInput struct {

	// as
	As *ResourcepluginStepInputTo `json:"as,omitempty"`

	// Name for the input
	Name string `json:"name,omitempty"`

	// Type of input
	Type string `json:"type,omitempty"`

	// ValueFromSandbox defines whether or not to source value from the sandbox spec
	ValueFromSandbox bool `json:"valueFromSandbox,omitempty"`

	// value from step
	ValueFromStep *ResourcepluginValueFromStep `json:"valueFromStep,omitempty"`
}

ResourcepluginStepInput resourceplugin step input

swagger:model resourceplugin.StepInput

func (*ResourcepluginStepInput) ContextValidate added in v0.3.7

func (m *ResourcepluginStepInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resourceplugin step input based on the context it is used

func (*ResourcepluginStepInput) MarshalBinary added in v0.3.7

func (m *ResourcepluginStepInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginStepInput) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginStepInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginStepInput) Validate added in v0.3.7

func (m *ResourcepluginStepInput) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin step input

type ResourcepluginStepInputTo added in v0.3.7

type ResourcepluginStepInputTo struct {

	// Inject the input as an env variable with name Env inside the
	// main container
	Env string `json:"env,omitempty"`

	// Expose the input as a file at Path inside the main container
	Path string `json:"path,omitempty"`
}

ResourcepluginStepInputTo resourceplugin step input to

swagger:model resourceplugin.StepInputTo

func (*ResourcepluginStepInputTo) ContextValidate added in v0.3.7

func (m *ResourcepluginStepInputTo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resourceplugin step input to based on context it is used

func (*ResourcepluginStepInputTo) MarshalBinary added in v0.3.7

func (m *ResourcepluginStepInputTo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginStepInputTo) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginStepInputTo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginStepInputTo) Validate added in v0.3.7

func (m *ResourcepluginStepInputTo) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin step input to

type ResourcepluginStepOut added in v0.3.7

type ResourcepluginStepOut struct {

	// Description for the output
	Description string `json:"description,omitempty"`

	// Name of the output variable
	Name string `json:"name,omitempty"`

	// Type of output
	Type string `json:"type,omitempty"`

	// Path within the main container from where the output will be read
	ValueFromPath string `json:"valueFromPath,omitempty"`
}

ResourcepluginStepOut resourceplugin step out

swagger:model resourceplugin.StepOut

func (*ResourcepluginStepOut) ContextValidate added in v0.3.7

func (m *ResourcepluginStepOut) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resourceplugin step out based on context it is used

func (*ResourcepluginStepOut) MarshalBinary added in v0.3.7

func (m *ResourcepluginStepOut) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginStepOut) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginStepOut) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginStepOut) Validate added in v0.3.7

func (m *ResourcepluginStepOut) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin step out

type ResourcepluginValueFromStep added in v0.3.7

type ResourcepluginValueFromStep struct {

	// Name of the step
	Name string `json:"name,omitempty"`

	// Name of the variable from the step
	Output string `json:"output,omitempty"`
}

ResourcepluginValueFromStep resourceplugin value from step

swagger:model resourceplugin.ValueFromStep

func (*ResourcepluginValueFromStep) ContextValidate added in v0.3.7

func (m *ResourcepluginValueFromStep) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resourceplugin value from step based on context it is used

func (*ResourcepluginValueFromStep) MarshalBinary added in v0.3.7

func (m *ResourcepluginValueFromStep) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcepluginValueFromStep) UnmarshalBinary added in v0.3.7

func (m *ResourcepluginValueFromStep) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcepluginValueFromStep) Validate added in v0.3.7

func (m *ResourcepluginValueFromStep) Validate(formats strfmt.Registry) error

Validate validates this resourceplugin value from step

type RouteGroup added in v0.3.6

type RouteGroup struct {

	// created at
	CreatedAt string `json:"createdAt,omitempty"`

	// endpoints
	Endpoints []*RouteGroupEndpoint `json:"endpoints,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// routing key
	RoutingKey string `json:"routingKey,omitempty"`

	// spec
	Spec *RouteGroupSpec `json:"spec,omitempty"`

	// status
	Status *RouteGroupStatus `json:"status,omitempty"`
}

RouteGroup route group

swagger:model RouteGroup

func (*RouteGroup) ContextValidate added in v0.3.6

func (m *RouteGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this route group based on the context it is used

func (*RouteGroup) MarshalBinary added in v0.3.6

func (m *RouteGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGroup) UnmarshalBinary added in v0.3.6

func (m *RouteGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGroup) Validate added in v0.3.6

func (m *RouteGroup) Validate(formats strfmt.Registry) error

Validate validates this route group

type RouteGroupEndpoint added in v0.3.6

type RouteGroupEndpoint struct {

	// name
	Name string `json:"name,omitempty"`

	// target
	Target string `json:"target,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

RouteGroupEndpoint route group endpoint

swagger:model routeGroup.Endpoint

func (*RouteGroupEndpoint) ContextValidate added in v0.3.6

func (m *RouteGroupEndpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this route group endpoint based on context it is used

func (*RouteGroupEndpoint) MarshalBinary added in v0.3.6

func (m *RouteGroupEndpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGroupEndpoint) UnmarshalBinary added in v0.3.6

func (m *RouteGroupEndpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGroupEndpoint) Validate added in v0.3.6

func (m *RouteGroupEndpoint) Validate(formats strfmt.Registry) error

Validate validates this route group endpoint

type RouteGroupMatch added in v0.3.6

type RouteGroupMatch struct {

	// When All is non-nil, T matches a set of labels if and only if every element of All matches them.
	// Only one field may be non-nil.
	All []*RouteGroupMatch `json:"all,omitempty"`

	// When Any is non-nil, T matches a set of labels if and only if some element of Any matches them.
	// Only one field may be non-nil.
	Any []*RouteGroupMatch `json:"any,omitempty"`

	// label
	Label *RouteGroupMatchLabel `json:"label,omitempty"`
}

RouteGroupMatch route group match

swagger:model routeGroup.Match

func (*RouteGroupMatch) ContextValidate added in v0.3.6

func (m *RouteGroupMatch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this route group match based on the context it is used

func (*RouteGroupMatch) MarshalBinary added in v0.3.6

func (m *RouteGroupMatch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGroupMatch) UnmarshalBinary added in v0.3.6

func (m *RouteGroupMatch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGroupMatch) Validate added in v0.3.6

func (m *RouteGroupMatch) Validate(formats strfmt.Registry) error

Validate validates this route group match

type RouteGroupMatchLabel added in v0.3.6

type RouteGroupMatchLabel struct {

	// Key is an exact match on a label key, glob
	// characters are just considered normal characters.
	Key string `json:"key,omitempty"`

	// Value is a glob match for the value of a
	// sandbox label.  See https://pkg.go.dev/path/filepath#Match
	// for the file glob syntax.
	Value string `json:"value,omitempty"`
}

RouteGroupMatchLabel route group match label

swagger:model routeGroup.MatchLabel

func (*RouteGroupMatchLabel) ContextValidate added in v0.3.6

func (m *RouteGroupMatchLabel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this route group match label based on context it is used

func (*RouteGroupMatchLabel) MarshalBinary added in v0.3.6

func (m *RouteGroupMatchLabel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGroupMatchLabel) UnmarshalBinary added in v0.3.6

func (m *RouteGroupMatchLabel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGroupMatchLabel) Validate added in v0.3.6

func (m *RouteGroupMatchLabel) Validate(formats strfmt.Registry) error

Validate validates this route group match label

type RouteGroupSpec added in v0.3.6

type RouteGroupSpec struct {

	// Cluster gives the cluster to which the route group applies.
	Cluster string `json:"cluster,omitempty"`

	// Description provides a short description of the route group.
	Description string `json:"description,omitempty"`

	// Endpoints define endpoints which target different in-cluster
	// services.
	Endpoints []*RouteGroupSpecEndpoint `json:"endpoints"`

	// match
	Match *RouteGroupMatch `json:"match,omitempty"`
}

RouteGroupSpec route group spec

swagger:model routeGroup.Spec

func (*RouteGroupSpec) ContextValidate added in v0.3.6

func (m *RouteGroupSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this route group spec based on the context it is used

func (*RouteGroupSpec) MarshalBinary added in v0.3.6

func (m *RouteGroupSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGroupSpec) UnmarshalBinary added in v0.3.6

func (m *RouteGroupSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGroupSpec) Validate added in v0.3.6

func (m *RouteGroupSpec) Validate(formats strfmt.Registry) error

Validate validates this route group spec

type RouteGroupSpecEndpoint added in v0.3.6

type RouteGroupSpecEndpoint struct {

	// name
	Name string `json:"name,omitempty"`

	// target
	Target string `json:"target,omitempty"`
}

RouteGroupSpecEndpoint route group spec endpoint

swagger:model routeGroup.SpecEndpoint

func (*RouteGroupSpecEndpoint) ContextValidate added in v0.3.6

func (m *RouteGroupSpecEndpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this route group spec endpoint based on context it is used

func (*RouteGroupSpecEndpoint) MarshalBinary added in v0.3.6

func (m *RouteGroupSpecEndpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGroupSpecEndpoint) UnmarshalBinary added in v0.3.6

func (m *RouteGroupSpecEndpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGroupSpecEndpoint) Validate added in v0.3.6

func (m *RouteGroupSpecEndpoint) Validate(formats strfmt.Registry) error

Validate validates this route group spec endpoint

type RouteGroupStatus added in v0.3.6

type RouteGroupStatus struct {

	// MatchedSandboxes gives the list of sandboxes whose labels
	// were matched by the 'match' object in the spec.
	MatchedSandboxes []string `json:"matchedSandboxes"`

	// Message is a human readable explanation of why
	// the sandbox is healthy or not.
	Message string `json:"message,omitempty"`

	// Ready indicates whether the sandbox is ready,
	// meaning that it can be used for testing.
	Ready bool `json:"ready,omitempty"`

	// Reason is a machine readable explanation of why
	// the sandbox is healthy or not.
	Reason string `json:"reason,omitempty"`
}

RouteGroupStatus route group status

swagger:model routeGroup.Status

func (*RouteGroupStatus) ContextValidate added in v0.3.6

func (m *RouteGroupStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this route group status based on context it is used

func (*RouteGroupStatus) MarshalBinary added in v0.3.6

func (m *RouteGroupStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGroupStatus) UnmarshalBinary added in v0.3.6

func (m *RouteGroupStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGroupStatus) Validate added in v0.3.6

func (m *RouteGroupStatus) Validate(formats strfmt.Registry) error

Validate validates this route group status

type Sandbox added in v0.2.0

type Sandbox struct {

	// created at
	CreatedAt string `json:"createdAt,omitempty"`

	// endpoints
	Endpoints []*SandboxEndpoint `json:"endpoints"`

	// Human-readable name of this sandbox
	Name string `json:"name,omitempty"`

	// routing key
	RoutingKey string `json:"routingKey,omitempty"`

	// spec
	Spec *SandboxSpec `json:"spec,omitempty"`

	// status
	Status *SandboxReadiness `json:"status,omitempty"`
}

Sandbox sandbox

swagger:model Sandbox

func (*Sandbox) ContextValidate added in v0.2.0

func (m *Sandbox) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox based on the context it is used

func (*Sandbox) MarshalBinary added in v0.2.0

func (m *Sandbox) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Sandbox) UnmarshalBinary added in v0.2.0

func (m *Sandbox) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Sandbox) Validate added in v0.2.0

func (m *Sandbox) Validate(formats strfmt.Registry) error

Validate validates this sandbox

type SandboxCustomPatch added in v0.2.0

type SandboxCustomPatch struct {

	// type
	Type string `json:"type,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

SandboxCustomPatch sandbox custom patch

swagger:model sandbox.CustomPatch

func (*SandboxCustomPatch) ContextValidate added in v0.2.0

func (m *SandboxCustomPatch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox custom patch based on context it is used

func (*SandboxCustomPatch) MarshalBinary added in v0.2.0

func (m *SandboxCustomPatch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxCustomPatch) UnmarshalBinary added in v0.2.0

func (m *SandboxCustomPatch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxCustomPatch) Validate added in v0.2.0

func (m *SandboxCustomPatch) Validate(formats strfmt.Registry) error

Validate validates this sandbox custom patch

type SandboxCustomizations

type SandboxCustomizations struct {

	// Env var modifications that will be applied to the forked workload
	Env []*SandboxEnvVar `json:"env"`

	// One or more docker images that will be applied to the forked workload
	Images []*SandboxImage `json:"images"`

	// patch
	Patch *SandboxCustomPatch `json:"patch,omitempty"`
}

SandboxCustomizations sandbox customizations

swagger:model sandbox.Customizations

func (*SandboxCustomizations) ContextValidate

func (m *SandboxCustomizations) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox customizations based on the context it is used

func (*SandboxCustomizations) MarshalBinary

func (m *SandboxCustomizations) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxCustomizations) UnmarshalBinary

func (m *SandboxCustomizations) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxCustomizations) Validate

func (m *SandboxCustomizations) Validate(formats strfmt.Registry) error

Validate validates this sandbox customizations

type SandboxDefaultRouteGroup added in v0.3.6

type SandboxDefaultRouteGroup struct {

	// endpoints
	Endpoints []*RouteGroupSpecEndpoint `json:"endpoints"`
}

SandboxDefaultRouteGroup sandbox default route group

swagger:model sandbox.DefaultRouteGroup

func (*SandboxDefaultRouteGroup) ContextValidate added in v0.3.6

func (m *SandboxDefaultRouteGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox default route group based on the context it is used

func (*SandboxDefaultRouteGroup) MarshalBinary added in v0.3.6

func (m *SandboxDefaultRouteGroup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxDefaultRouteGroup) UnmarshalBinary added in v0.3.6

func (m *SandboxDefaultRouteGroup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxDefaultRouteGroup) Validate added in v0.3.6

func (m *SandboxDefaultRouteGroup) Validate(formats strfmt.Registry) error

Validate validates this sandbox default route group

type SandboxEndpoint

type SandboxEndpoint struct {

	// baseline Url
	BaselineURL string `json:"baselineUrl,omitempty"`

	// host
	Host string `json:"host,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// port
	Port int64 `json:"port,omitempty"`

	// protocol
	Protocol string `json:"protocol,omitempty"`

	// route type
	RouteType string `json:"routeType,omitempty"`

	// target
	Target string `json:"target,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

SandboxEndpoint sandbox endpoint

swagger:model sandbox.Endpoint

func (*SandboxEndpoint) ContextValidate

func (m *SandboxEndpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox endpoint based on context it is used

func (*SandboxEndpoint) MarshalBinary

func (m *SandboxEndpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxEndpoint) UnmarshalBinary

func (m *SandboxEndpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxEndpoint) Validate

func (m *SandboxEndpoint) Validate(formats strfmt.Registry) error

Validate validates this sandbox endpoint

type SandboxEnvValueFrom added in v0.2.0

type SandboxEnvValueFrom struct {

	// fork
	Fork *SandboxEnvValueFromFork `json:"fork,omitempty"`

	// resource
	Resource *SandboxEnvValueFromResource `json:"resource,omitempty"`
}

SandboxEnvValueFrom sandbox env value from

swagger:model sandbox.EnvValueFrom

func (*SandboxEnvValueFrom) ContextValidate added in v0.2.0

func (m *SandboxEnvValueFrom) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox env value from based on the context it is used

func (*SandboxEnvValueFrom) MarshalBinary added in v0.2.0

func (m *SandboxEnvValueFrom) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxEnvValueFrom) UnmarshalBinary added in v0.2.0

func (m *SandboxEnvValueFrom) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxEnvValueFrom) Validate added in v0.2.0

func (m *SandboxEnvValueFrom) Validate(formats strfmt.Registry) error

Validate validates this sandbox env value from

type SandboxEnvValueFromFork added in v0.2.0

type SandboxEnvValueFromFork struct {

	// expression
	Expression string `json:"expression,omitempty"`

	// fork of
	ForkOf *SandboxForkOf `json:"forkOf,omitempty"`
}

SandboxEnvValueFromFork sandbox env value from fork

swagger:model sandbox.EnvValueFromFork

func (*SandboxEnvValueFromFork) ContextValidate added in v0.2.0

func (m *SandboxEnvValueFromFork) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox env value from fork based on the context it is used

func (*SandboxEnvValueFromFork) MarshalBinary added in v0.2.0

func (m *SandboxEnvValueFromFork) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxEnvValueFromFork) UnmarshalBinary added in v0.2.0

func (m *SandboxEnvValueFromFork) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxEnvValueFromFork) Validate added in v0.2.0

func (m *SandboxEnvValueFromFork) Validate(formats strfmt.Registry) error

Validate validates this sandbox env value from fork

type SandboxEnvValueFromResource added in v0.2.0

type SandboxEnvValueFromResource struct {

	// name
	Name string `json:"name,omitempty"`

	// output key
	OutputKey string `json:"outputKey,omitempty"`
}

SandboxEnvValueFromResource sandbox env value from resource

swagger:model sandbox.EnvValueFromResource

func (*SandboxEnvValueFromResource) ContextValidate added in v0.2.0

func (m *SandboxEnvValueFromResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox env value from resource based on context it is used

func (*SandboxEnvValueFromResource) MarshalBinary added in v0.2.0

func (m *SandboxEnvValueFromResource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxEnvValueFromResource) UnmarshalBinary added in v0.2.0

func (m *SandboxEnvValueFromResource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxEnvValueFromResource) Validate added in v0.2.0

func (m *SandboxEnvValueFromResource) Validate(formats strfmt.Registry) error

Validate validates this sandbox env value from resource

type SandboxEnvVar added in v0.2.0

type SandboxEnvVar struct {

	// name of container to which it applies
	Container string `json:"container,omitempty"`

	// environmental variable name
	Name string `json:"name,omitempty"`

	// upsert or delete
	Operation string `json:"operation,omitempty"`

	// environmental variable value
	Value string `json:"value,omitempty"`

	// value from
	ValueFrom *SandboxEnvValueFrom `json:"valueFrom,omitempty"`
}

SandboxEnvVar sandbox env var

swagger:model sandbox.EnvVar

func (*SandboxEnvVar) ContextValidate added in v0.2.0

func (m *SandboxEnvVar) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox env var based on the context it is used

func (*SandboxEnvVar) MarshalBinary added in v0.2.0

func (m *SandboxEnvVar) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxEnvVar) UnmarshalBinary added in v0.2.0

func (m *SandboxEnvVar) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxEnvVar) Validate added in v0.2.0

func (m *SandboxEnvVar) Validate(formats strfmt.Registry) error

Validate validates this sandbox env var

type SandboxFork

type SandboxFork struct {

	// customizations
	Customizations *SandboxCustomizations `json:"customizations,omitempty"`

	// Deprecated. Use defaultRouteGroup.Endpoints instead.
	Endpoints []*SandboxForkEndpoint `json:"endpoints"`

	// fork of
	ForkOf *SandboxForkOf `json:"forkOf,omitempty"`
}

SandboxFork sandbox fork

swagger:model sandbox.Fork

func (*SandboxFork) ContextValidate

func (m *SandboxFork) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox fork based on the context it is used

func (*SandboxFork) MarshalBinary

func (m *SandboxFork) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxFork) UnmarshalBinary

func (m *SandboxFork) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxFork) Validate

func (m *SandboxFork) Validate(formats strfmt.Registry) error

Validate validates this sandbox fork

type SandboxForkEndpoint added in v0.2.0

type SandboxForkEndpoint struct {

	// Name of the endpoint
	Name string `json:"name,omitempty"`

	// Port it will map to on the forked workload
	Port int64 `json:"port,omitempty"`

	// Protocol that this endpoint uses
	Protocol string `json:"protocol,omitempty"`
}

SandboxForkEndpoint sandbox fork endpoint

swagger:model sandbox.ForkEndpoint

func (*SandboxForkEndpoint) ContextValidate added in v0.2.0

func (m *SandboxForkEndpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox fork endpoint based on context it is used

func (*SandboxForkEndpoint) MarshalBinary added in v0.2.0

func (m *SandboxForkEndpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxForkEndpoint) UnmarshalBinary added in v0.2.0

func (m *SandboxForkEndpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxForkEndpoint) Validate added in v0.2.0

func (m *SandboxForkEndpoint) Validate(formats strfmt.Registry) error

Validate validates this sandbox fork endpoint

type SandboxForkOf added in v0.2.0

type SandboxForkOf struct {

	// Kind of entity that we want to route to. One of (Service or Deployment or Rollout).
	// Example: Deployment
	// Required: true
	Kind *string `json:"kind"`

	// Name of the entity within the Kubernetes cluster.
	// Example: my-frontend
	// Required: true
	Name *string `json:"name"`

	// Namespace within which the entity lives in the Kubernetes cluster.
	// Example: default
	// Required: true
	Namespace *string `json:"namespace"`
}

SandboxForkOf sandbox fork of

swagger:model sandbox.ForkOf

func (*SandboxForkOf) ContextValidate added in v0.2.0

func (m *SandboxForkOf) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox fork of based on context it is used

func (*SandboxForkOf) MarshalBinary added in v0.2.0

func (m *SandboxForkOf) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxForkOf) UnmarshalBinary added in v0.2.0

func (m *SandboxForkOf) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxForkOf) Validate added in v0.2.0

func (m *SandboxForkOf) Validate(formats strfmt.Registry) error

Validate validates this sandbox fork of

type SandboxHostEndpoint added in v0.2.0

type SandboxHostEndpoint struct {

	// Hostname that this endpoint points to
	Host string `json:"host,omitempty"`

	// Name of the endpoint
	Name string `json:"name,omitempty"`

	// Port it will map to on the specified host
	Port int64 `json:"port,omitempty"`

	// Protocol that this endpoint uses
	Protocol string `json:"protocol,omitempty"`
}

SandboxHostEndpoint sandbox host endpoint

swagger:model sandbox.HostEndpoint

func (*SandboxHostEndpoint) ContextValidate added in v0.2.0

func (m *SandboxHostEndpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox host endpoint based on context it is used

func (*SandboxHostEndpoint) MarshalBinary added in v0.2.0

func (m *SandboxHostEndpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxHostEndpoint) UnmarshalBinary added in v0.2.0

func (m *SandboxHostEndpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxHostEndpoint) Validate added in v0.2.0

func (m *SandboxHostEndpoint) Validate(formats strfmt.Registry) error

Validate validates this sandbox host endpoint

type SandboxImage added in v0.2.0

type SandboxImage struct {

	// Container is the container this image must apply to in the forked workload
	Container string `json:"container,omitempty"`

	// Name of the image (e.g. gcr.io/my-image/repo:my-tag)
	Image string `json:"image,omitempty"`
}

SandboxImage sandbox image

swagger:model sandbox.Image

func (*SandboxImage) ContextValidate added in v0.2.0

func (m *SandboxImage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox image based on context it is used

func (*SandboxImage) MarshalBinary added in v0.2.0

func (m *SandboxImage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxImage) UnmarshalBinary added in v0.2.0

func (m *SandboxImage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxImage) Validate added in v0.2.0

func (m *SandboxImage) Validate(formats strfmt.Registry) error

Validate validates this sandbox image

type SandboxReadiness added in v0.2.0

type SandboxReadiness struct {

	// Message is a human readable explanation of why
	// the sandbox is healthy or not.
	Message string `json:"message,omitempty"`

	// Ready indicates whether the sandbox is ready,
	// meaning that it can be used for testing.
	Ready bool `json:"ready,omitempty"`

	// Reason is a machine readable explanation of why
	// the sandbox is healthy or not.
	Reason string `json:"reason,omitempty"`
}

SandboxReadiness sandbox readiness

swagger:model sandbox.Readiness

func (*SandboxReadiness) ContextValidate added in v0.2.0

func (m *SandboxReadiness) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox readiness based on context it is used

func (*SandboxReadiness) MarshalBinary added in v0.2.0

func (m *SandboxReadiness) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxReadiness) UnmarshalBinary added in v0.2.0

func (m *SandboxReadiness) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxReadiness) Validate added in v0.2.0

func (m *SandboxReadiness) Validate(formats strfmt.Registry) error

Validate validates this sandbox readiness

type SandboxResource

type SandboxResource struct {

	// name
	Name string `json:"name,omitempty"`

	// params
	Params map[string]string `json:"params,omitempty"`

	// plugin
	Plugin string `json:"plugin,omitempty"`
}

SandboxResource sandbox resource

swagger:model sandbox.Resource

func (*SandboxResource) ContextValidate

func (m *SandboxResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox resource based on context it is used

func (*SandboxResource) MarshalBinary

func (m *SandboxResource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxResource) UnmarshalBinary

func (m *SandboxResource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxResource) Validate

func (m *SandboxResource) Validate(formats strfmt.Registry) error

Validate validates this sandbox resource

type SandboxSpec added in v0.2.0

type SandboxSpec struct {

	// Cluster within which this sandbox should be created
	// Required: true
	Cluster *string `json:"cluster"`

	// default route group
	DefaultRouteGroup *SandboxDefaultRouteGroup `json:"defaultRouteGroup,omitempty"`

	// Description of the purpose of this sandbox
	Description string `json:"description,omitempty"`

	// Deprecated. Use defaultRouteGroup.Endpoints instead.
	Endpoints []*SandboxHostEndpoint `json:"endpoints"`

	// Forks is the specification of each forked entity
	// Required: true
	Forks []*SandboxFork `json:"forks"`

	// Labels are used to specify metadata associated with the sandbox as key-value pairs.
	Labels map[string]string `json:"labels,omitempty"`

	// Resources specifies each required resource to spin up the sandbox
	Resources []*SandboxResource `json:"resources"`

	// ttl
	TTL *SandboxTTL `json:"ttl,omitempty"`
}

SandboxSpec sandbox spec

swagger:model sandbox.Spec

func (*SandboxSpec) ContextValidate added in v0.2.0

func (m *SandboxSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sandbox spec based on the context it is used

func (*SandboxSpec) MarshalBinary added in v0.2.0

func (m *SandboxSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxSpec) UnmarshalBinary added in v0.2.0

func (m *SandboxSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxSpec) Validate added in v0.2.0

func (m *SandboxSpec) Validate(formats strfmt.Registry) error

Validate validates this sandbox spec

type SandboxTTL added in v0.3.5

type SandboxTTL struct {

	// Duration represents the duration until sandbox end of life.
	// It should be an unsigned integer not exceeding 32 bits followed by
	// a units character, which can be one of the following.
	//  - 'm' for minutes
	//  - 'h' for hours
	//  - 'd' for days
	//  - 'w' for weeks
	Duration string `json:"duration,omitempty"`

	// OffsetFrom indicates what the Duration is relative to.  It
	// may be the empty string or "createdAt".  The empty string
	// defaults to meaning "createdAt".
	OffsetFrom string `json:"offsetFrom,omitempty"`
}

SandboxTTL sandbox TTL

swagger:model sandbox.TTL

func (*SandboxTTL) ContextValidate added in v0.3.5

func (m *SandboxTTL) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sandbox TTL based on context it is used

func (*SandboxTTL) MarshalBinary added in v0.3.5

func (m *SandboxTTL) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SandboxTTL) UnmarshalBinary added in v0.3.5

func (m *SandboxTTL) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SandboxTTL) Validate added in v0.3.5

func (m *SandboxTTL) Validate(formats strfmt.Registry) error

Validate validates this sandbox TTL

Jump to

Keyboard shortcuts

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