workload_models

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIStatusDetail

type APIStatusDetail interface {
	runtime.Validatable

	// at type
	// Required: true
	AtType() string
	SetAtType(string)
}

APIStatusDetail api status detail

swagger:discriminator apiStatusDetail @type

func UnmarshalAPIStatusDetail

func UnmarshalAPIStatusDetail(reader io.Reader, consumer runtime.Consumer) (APIStatusDetail, error)

UnmarshalAPIStatusDetail unmarshals polymorphic APIStatusDetail

func UnmarshalAPIStatusDetailSlice

func UnmarshalAPIStatusDetailSlice(reader io.Reader, consumer runtime.Consumer) ([]APIStatusDetail, error)

UnmarshalAPIStatusDetailSlice unmarshals polymorphic slices of APIStatusDetail

type ContainerStatusRunning

type ContainerStatusRunning struct {

	// The date a container started
	// Format: date-time
	StartedAt strfmt.DateTime `json:"startedAt,omitempty"`
}

ContainerStatusRunning Properties related to running containers

swagger:model ContainerStatusRunning

func (*ContainerStatusRunning) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerStatusRunning) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerStatusRunning) Validate

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

Validate validates this container status running

type ContainerStatusTerminated

type ContainerStatusTerminated struct {

	// The exit code of the command that started the container
	ExitCode int32 `json:"exitCode,omitempty"`

	// The date a container terminated
	// Format: date-time
	FinishedAt strfmt.DateTime `json:"finishedAt,omitempty"`

	// A more detailed explanation of a container's termination
	Message string `json:"message,omitempty"`

	// The reason a container terminated
	Reason string `json:"reason,omitempty"`

	// The date a container started
	// Format: date-time
	StartedAt strfmt.DateTime `json:"startedAt,omitempty"`
}

ContainerStatusTerminated Properties related to terminated containers

swagger:model ContainerStatusTerminated

func (*ContainerStatusTerminated) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerStatusTerminated) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerStatusTerminated) Validate

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

Validate validates this container status terminated

type ContainerStatusWaiting

type ContainerStatusWaiting struct {

	// A more detailed explanation of a container's waiting state
	Message string `json:"message,omitempty"`

	// The reason that a container is waiting to start
	Reason string `json:"reason,omitempty"`
}

ContainerStatusWaiting Properties related to containers that are starting up

swagger:model ContainerStatusWaiting

func (*ContainerStatusWaiting) MarshalBinary

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

MarshalBinary interface implementation

func (*ContainerStatusWaiting) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ContainerStatusWaiting) Validate

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

Validate validates this container status waiting

type DataMatrix

type DataMatrix struct {

	// A data point's value
	Results []*DataMatrixResult `json:"results"`
}

DataMatrix A set of time series containing a range of data points over time for each time series

swagger:model DataMatrix

func (*DataMatrix) MarshalBinary

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

MarshalBinary interface implementation

func (*DataMatrix) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataMatrix) Validate

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

Validate validates this data matrix

type DataMatrixResult

type DataMatrixResult struct {

	// The data points' labels
	Metric map[string]string `json:"metric,omitempty"`

	// Time series data point values
	Values []*DataValue `json:"values"`
}

DataMatrixResult Time series containing a range of data points over time for each time series

swagger:model DataMatrixResult

func (*DataMatrixResult) MarshalBinary

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

MarshalBinary interface implementation

func (*DataMatrixResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataMatrixResult) Validate

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

Validate validates this data matrix result

type DataValue

type DataValue struct {

	// The time that a data point was recorded
	UnixTime string `json:"unixTime,omitempty"`

	// A data point's value
	Value string `json:"value,omitempty"`
}

DataValue An individual metric data point

swagger:model DataValue

func (*DataValue) MarshalBinary

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

MarshalBinary interface implementation

func (*DataValue) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataValue) Validate

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

Validate validates this data value

type DataVector

type DataVector struct {

	// A data point's value
	Results []*DataVectorResult `json:"results"`
}

DataVector A set of time series containing a single sample for each time series, all sharing the same timestamp

swagger:model DataVector

func (*DataVector) MarshalBinary

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

MarshalBinary interface implementation

func (*DataVector) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataVector) Validate

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

Validate validates this data vector

type DataVectorResult

type DataVectorResult struct {

	// The data points' labels
	Metric map[string]string `json:"metric,omitempty"`

	// value
	Value *DataValue `json:"value,omitempty"`
}

DataVectorResult Time series containing a single sample for each time series, all sharing the same timestamp

swagger:model DataVectorResult

func (*DataVectorResult) MarshalBinary

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

MarshalBinary interface implementation

func (*DataVectorResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataVectorResult) Validate

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

Validate validates this data vector result

type GetMetricsRequestGroupBy

type GetMetricsRequestGroupBy string

GetMetricsRequestGroupBy The available fields to group instance metrics by

swagger:model GetMetricsRequestGroupBy

const (

	// GetMetricsRequestGroupByNONE captures enum value "NONE"
	GetMetricsRequestGroupByNONE GetMetricsRequestGroupBy = "NONE"

	// GetMetricsRequestGroupByINSTANCENAME captures enum value "INSTANCE_NAME"
	GetMetricsRequestGroupByINSTANCENAME GetMetricsRequestGroupBy = "INSTANCE_NAME"
)

func (GetMetricsRequestGroupBy) Validate

func (m GetMetricsRequestGroupBy) Validate(formats strfmt.Registry) error

Validate validates this get metrics request group by

type MetricsData

type MetricsData struct {

	// matrix
	Matrix *DataMatrix `json:"matrix,omitempty"`

	// vector
	Vector *DataVector `json:"vector,omitempty"`
}

MetricsData The data points in a metrics collection

swagger:model MetricsData

func (*MetricsData) MarshalBinary

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

MarshalBinary interface implementation

func (*MetricsData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MetricsData) Validate

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

Validate validates this metrics data

type PaginationPageInfo

type PaginationPageInfo struct {

	// The cursor for the last item in the set of data returned
	EndCursor string `json:"endCursor,omitempty"`

	// Whether or not another page of data is available
	HasNextPage bool `json:"hasNextPage,omitempty"`

	// Whether or not a previous page of data exists
	HasPreviousPage bool `json:"hasPreviousPage,omitempty"`

	// The cursor for the first item in the set of data returned
	StartCursor string `json:"startCursor,omitempty"`

	// The total number of items in the dataset
	TotalCount string `json:"totalCount,omitempty"`
}

PaginationPageInfo Information about a paginated response

This is modeled after the GraphQL Relay spec to support both cursor based pagination and traditional offset based pagination.

swagger:model paginationPageInfo

func (*PaginationPageInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*PaginationPageInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaginationPageInfo) Validate

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

Validate validates this pagination page info

type PaginationPageRequest

type PaginationPageRequest struct {

	// The cursor value after which data will be returned
	After string `json:"after,omitempty"`

	// SQL-style constraint filters
	Filter string `json:"filter,omitempty"`

	// The number of items desired
	First string `json:"first,omitempty"`

	// Sort the response by the given field
	SortBy string `json:"sortBy,omitempty"`
}

PaginationPageRequest Pagination request information

This is modeled after the GraphQL Relay spec to support both cursor based pagination and traditional offset based pagination.

swagger:model paginationPageRequest

func (*PaginationPageRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*PaginationPageRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaginationPageRequest) Validate

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

Validate validates this pagination page request

type PrometheusMetrics

type PrometheusMetrics struct {

	// data
	Data *MetricsData `json:"data,omitempty"`

	// The error encountered when querying for metrics
	Error string `json:"error,omitempty"`

	// The type of error encountered when querying for metrics
	ErrorType string `json:"errorType,omitempty"`

	// status
	Status PrometheusMetricsStatus `json:"status,omitempty"`

	// Warnings encountered when querying for metrics
	Warnings []string `json:"warnings"`
}

PrometheusMetrics A collection of metrics

swagger:model prometheusMetrics

func (*PrometheusMetrics) MarshalBinary

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

MarshalBinary interface implementation

func (*PrometheusMetrics) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PrometheusMetrics) Validate

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

Validate validates this prometheus metrics

type PrometheusMetricsStatus

type PrometheusMetricsStatus string

PrometheusMetricsStatus A metrics query's resulting status

swagger:model prometheusMetricsStatus

const (

	// PrometheusMetricsStatusSUCCESS captures enum value "SUCCESS"
	PrometheusMetricsStatusSUCCESS PrometheusMetricsStatus = "SUCCESS"

	// PrometheusMetricsStatusERROR captures enum value "ERROR"
	PrometheusMetricsStatusERROR PrometheusMetricsStatus = "ERROR"
)

func (PrometheusMetricsStatus) Validate

func (m PrometheusMetricsStatus) Validate(formats strfmt.Registry) error

Validate validates this prometheus metrics status

type StackpathRPCBadRequest

type StackpathRPCBadRequest struct {

	// field violations
	FieldViolations []*StackpathRPCBadRequestFieldViolation `json:"fieldViolations"`
}

StackpathRPCBadRequest stackpath rpc bad request

swagger:model stackpath.rpc.BadRequest

func (*StackpathRPCBadRequest) AtType

func (m *StackpathRPCBadRequest) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCBadRequest) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCBadRequest) MarshalJSON

func (m StackpathRPCBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCBadRequest) SetAtType

func (m *StackpathRPCBadRequest) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCBadRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCBadRequest) UnmarshalJSON

func (m *StackpathRPCBadRequest) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCBadRequest) Validate

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

Validate validates this stackpath rpc bad request

type StackpathRPCBadRequestFieldViolation

type StackpathRPCBadRequestFieldViolation struct {

	// description
	Description string `json:"description,omitempty"`

	// field
	Field string `json:"field,omitempty"`
}

StackpathRPCBadRequestFieldViolation stackpath rpc bad request field violation

swagger:model stackpath.rpc.BadRequest.FieldViolation

func (*StackpathRPCBadRequestFieldViolation) MarshalBinary

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

MarshalBinary interface implementation

func (*StackpathRPCBadRequestFieldViolation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCBadRequestFieldViolation) Validate

Validate validates this stackpath rpc bad request field violation

type StackpathRPCHelp

type StackpathRPCHelp struct {

	// links
	Links []*StackpathRPCHelpLink `json:"links"`
}

StackpathRPCHelp stackpath rpc help

swagger:model stackpath.rpc.Help

func (*StackpathRPCHelp) AtType

func (m *StackpathRPCHelp) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCHelp) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCHelp) MarshalJSON

func (m StackpathRPCHelp) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCHelp) SetAtType

func (m *StackpathRPCHelp) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCHelp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCHelp) UnmarshalJSON

func (m *StackpathRPCHelp) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCHelp) Validate

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

Validate validates this stackpath rpc help

type StackpathRPCHelpLink struct {

	// description
	Description string `json:"description,omitempty"`

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

StackpathRPCHelpLink stackpath rpc help link

swagger:model stackpath.rpc.Help.Link

func (*StackpathRPCHelpLink) MarshalBinary

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

MarshalBinary interface implementation

func (*StackpathRPCHelpLink) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCHelpLink) Validate

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

Validate validates this stackpath rpc help link

type StackpathRPCLocalizedMessage

type StackpathRPCLocalizedMessage struct {

	// locale
	Locale string `json:"locale,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

StackpathRPCLocalizedMessage stackpath rpc localized message

swagger:model stackpath.rpc.LocalizedMessage

func (*StackpathRPCLocalizedMessage) AtType

AtType gets the at type of this subtype

func (*StackpathRPCLocalizedMessage) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCLocalizedMessage) MarshalJSON

func (m StackpathRPCLocalizedMessage) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCLocalizedMessage) SetAtType

func (m *StackpathRPCLocalizedMessage) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCLocalizedMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCLocalizedMessage) UnmarshalJSON

func (m *StackpathRPCLocalizedMessage) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCLocalizedMessage) Validate

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

Validate validates this stackpath rpc localized message

type StackpathRPCPreconditionFailure

type StackpathRPCPreconditionFailure struct {

	// violations
	Violations []*StackpathRPCPreconditionFailureViolation `json:"violations"`
}

StackpathRPCPreconditionFailure stackpath rpc precondition failure

swagger:model stackpath.rpc.PreconditionFailure

func (*StackpathRPCPreconditionFailure) AtType

AtType gets the at type of this subtype

func (*StackpathRPCPreconditionFailure) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCPreconditionFailure) MarshalJSON

func (m StackpathRPCPreconditionFailure) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCPreconditionFailure) SetAtType

func (m *StackpathRPCPreconditionFailure) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCPreconditionFailure) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCPreconditionFailure) UnmarshalJSON

func (m *StackpathRPCPreconditionFailure) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCPreconditionFailure) Validate

Validate validates this stackpath rpc precondition failure

type StackpathRPCPreconditionFailureViolation

type StackpathRPCPreconditionFailureViolation struct {

	// description
	Description string `json:"description,omitempty"`

	// subject
	Subject string `json:"subject,omitempty"`

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

StackpathRPCPreconditionFailureViolation stackpath rpc precondition failure violation

swagger:model stackpath.rpc.PreconditionFailure.Violation

func (*StackpathRPCPreconditionFailureViolation) MarshalBinary

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

MarshalBinary interface implementation

func (*StackpathRPCPreconditionFailureViolation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCPreconditionFailureViolation) Validate

Validate validates this stackpath rpc precondition failure violation

type StackpathRPCQuotaFailure

type StackpathRPCQuotaFailure struct {

	// violations
	Violations []*StackpathRPCQuotaFailureViolation `json:"violations"`
}

StackpathRPCQuotaFailure stackpath rpc quota failure

swagger:model stackpath.rpc.QuotaFailure

func (*StackpathRPCQuotaFailure) AtType

func (m *StackpathRPCQuotaFailure) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCQuotaFailure) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCQuotaFailure) MarshalJSON

func (m StackpathRPCQuotaFailure) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCQuotaFailure) SetAtType

func (m *StackpathRPCQuotaFailure) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCQuotaFailure) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCQuotaFailure) UnmarshalJSON

func (m *StackpathRPCQuotaFailure) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCQuotaFailure) Validate

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

Validate validates this stackpath rpc quota failure

type StackpathRPCQuotaFailureViolation

type StackpathRPCQuotaFailureViolation struct {

	// description
	Description string `json:"description,omitempty"`

	// subject
	Subject string `json:"subject,omitempty"`
}

StackpathRPCQuotaFailureViolation stackpath rpc quota failure violation

swagger:model stackpath.rpc.QuotaFailure.Violation

func (*StackpathRPCQuotaFailureViolation) MarshalBinary

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

MarshalBinary interface implementation

func (*StackpathRPCQuotaFailureViolation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCQuotaFailureViolation) Validate

Validate validates this stackpath rpc quota failure violation

type StackpathRPCRequestInfo

type StackpathRPCRequestInfo struct {

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

	// serving data
	ServingData string `json:"servingData,omitempty"`
}

StackpathRPCRequestInfo stackpath rpc request info

swagger:model stackpath.rpc.RequestInfo

func (*StackpathRPCRequestInfo) AtType

func (m *StackpathRPCRequestInfo) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCRequestInfo) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCRequestInfo) MarshalJSON

func (m StackpathRPCRequestInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCRequestInfo) SetAtType

func (m *StackpathRPCRequestInfo) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCRequestInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCRequestInfo) UnmarshalJSON

func (m *StackpathRPCRequestInfo) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCRequestInfo) Validate

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

Validate validates this stackpath rpc request info

type StackpathRPCResourceInfo

type StackpathRPCResourceInfo struct {

	// description
	Description string `json:"description,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// resource name
	ResourceName string `json:"resourceName,omitempty"`

	// resource type
	ResourceType string `json:"resourceType,omitempty"`
}

StackpathRPCResourceInfo stackpath rpc resource info

swagger:model stackpath.rpc.ResourceInfo

func (*StackpathRPCResourceInfo) AtType

func (m *StackpathRPCResourceInfo) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCResourceInfo) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCResourceInfo) MarshalJSON

func (m StackpathRPCResourceInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCResourceInfo) SetAtType

func (m *StackpathRPCResourceInfo) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCResourceInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCResourceInfo) UnmarshalJSON

func (m *StackpathRPCResourceInfo) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCResourceInfo) Validate

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

Validate validates this stackpath rpc resource info

type StackpathRPCRetryInfo

type StackpathRPCRetryInfo struct {

	// retry delay
	RetryDelay string `json:"retryDelay,omitempty"`
}

StackpathRPCRetryInfo stackpath rpc retry info

swagger:model stackpath.rpc.RetryInfo

func (*StackpathRPCRetryInfo) AtType

func (m *StackpathRPCRetryInfo) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCRetryInfo) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathRPCRetryInfo) MarshalJSON

func (m StackpathRPCRetryInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCRetryInfo) SetAtType

func (m *StackpathRPCRetryInfo) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCRetryInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathRPCRetryInfo) UnmarshalJSON

func (m *StackpathRPCRetryInfo) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCRetryInfo) Validate

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

Validate validates this stackpath rpc retry info

type StackpathapiStatus

type StackpathapiStatus struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
	// contains filtered or unexported fields
}

StackpathapiStatus stackpathapi status

swagger:model stackpathapiStatus

func (*StackpathapiStatus) Details

func (m *StackpathapiStatus) Details() []APIStatusDetail

Details gets the details of this base type

func (*StackpathapiStatus) MarshalBinary

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

MarshalBinary interface implementation

func (StackpathapiStatus) MarshalJSON

func (m StackpathapiStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathapiStatus) SetDetails

func (m *StackpathapiStatus) SetDetails(val []APIStatusDetail)

SetDetails sets the details of this base type

func (*StackpathapiStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StackpathapiStatus) UnmarshalJSON

func (m *StackpathapiStatus) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathapiStatus) Validate

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

Validate validates this stackpathapi status

type V1ContainerSpec

type V1ContainerSpec struct {

	// The commands that start a container
	Command []string `json:"command"`

	// env
	Env V1EnvironmentVariableMapEntry `json:"env,omitempty"`

	// The location of a Docker image to run as a container
	Image string `json:"image,omitempty"`

	// liveness probe
	LivenessProbe *V1Probe `json:"livenessProbe,omitempty"`

	// ports
	Ports V1InstancePortMapEntry `json:"ports,omitempty"`

	// readiness probe
	ReadinessProbe *V1Probe `json:"readinessProbe,omitempty"`

	// resources
	Resources *V1ResourceRequirements `json:"resources,omitempty"`

	// Volumes to mount in the container
	VolumeMounts []*V1InstanceVolumeMount `json:"volumeMounts"`
}

V1ContainerSpec The specification for the desired state of a container in a workload

swagger:model v1ContainerSpec

func (*V1ContainerSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*V1ContainerSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1ContainerSpec) Validate

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

Validate validates this v1 container spec

type V1ContainerSpecMapEntry

type V1ContainerSpecMapEntry map[string]V1ContainerSpec

V1ContainerSpecMapEntry A string to container configuration key/value pair

swagger:model v1ContainerSpecMapEntry

func (V1ContainerSpecMapEntry) Validate

func (m V1ContainerSpecMapEntry) Validate(formats strfmt.Registry) error

Validate validates this v1 container spec map entry

type V1ContainerStatus

type V1ContainerStatus struct {

	// A unique value that identifies a container
	ContainerID string `json:"containerId,omitempty"`

	// The date a container terminated
	// Format: date-time
	FinishedAt strfmt.DateTime `json:"finishedAt,omitempty"`

	// A container status' name
	Name string `json:"name,omitempty"`

	// phase
	Phase V1ContainerStatusContainerPhase `json:"phase,omitempty"`

	// Whether or not a container is running and ready for service
	Ready bool `json:"ready,omitempty"`

	// How many times a container has restarted since it was first started
	RestartCount int32 `json:"restartCount,omitempty"`

	// running
	Running *ContainerStatusRunning `json:"running,omitempty"`

	// The date a container started
	// Format: date-time
	StartedAt strfmt.DateTime `json:"startedAt,omitempty"`

	// terminated
	Terminated *ContainerStatusTerminated `json:"terminated,omitempty"`

	// waiting
	Waiting *ContainerStatusWaiting `json:"waiting,omitempty"`
}

V1ContainerStatus The status of a container in a workload

swagger:model v1ContainerStatus

func (*V1ContainerStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*V1ContainerStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1ContainerStatus) Validate

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

Validate validates this v1 container status

type V1ContainerStatusContainerPhase

type V1ContainerStatusContainerPhase string

V1ContainerStatusContainerPhase Which phase of runtime a container is currently in

- CONTAINER_PHASE_UNSPECIFIED: The container has not reported a state back or StackPath is unable to determine the container's state

  • STARTING: The container is starting up
  • RUNNING: The container is running
  • FAILED: The container has terminated due to a failure
  • STOPPED: The container was terminated by the user

swagger:model v1ContainerStatusContainerPhase

const (

	// V1ContainerStatusContainerPhaseCONTAINERPHASEUNSPECIFIED captures enum value "CONTAINER_PHASE_UNSPECIFIED"
	V1ContainerStatusContainerPhaseCONTAINERPHASEUNSPECIFIED V1ContainerStatusContainerPhase = "CONTAINER_PHASE_UNSPECIFIED"

	// V1ContainerStatusContainerPhaseSTARTING captures enum value "STARTING"
	V1ContainerStatusContainerPhaseSTARTING V1ContainerStatusContainerPhase = "STARTING"

	// V1ContainerStatusContainerPhaseRUNNING captures enum value "RUNNING"
	V1ContainerStatusContainerPhaseRUNNING V1ContainerStatusContainerPhase = "RUNNING"

	// V1ContainerStatusContainerPhaseFAILED captures enum value "FAILED"
	V1ContainerStatusContainerPhaseFAILED V1ContainerStatusContainerPhase = "FAILED"

	// V1ContainerStatusContainerPhaseSTOPPED captures enum value "STOPPED"
	V1ContainerStatusContainerPhaseSTOPPED V1ContainerStatusContainerPhase = "STOPPED"
)

func (V1ContainerStatusContainerPhase) Validate

Validate validates this v1 container status container phase

type V1CreateWorkloadRequest

type V1CreateWorkloadRequest struct {

	// workload
	Workload *V1Workload `json:"workload,omitempty"`
}

V1CreateWorkloadRequest v1 create workload request

swagger:model v1CreateWorkloadRequest

func (*V1CreateWorkloadRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*V1CreateWorkloadRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1CreateWorkloadRequest) Validate

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

Validate validates this v1 create workload request

type V1CreateWorkloadResponse

type V1CreateWorkloadResponse struct {

	// workload
	Workload *V1Workload `json:"workload,omitempty"`
}

V1CreateWorkloadResponse A response from a request to add a workload to a stack

swagger:model v1CreateWorkloadResponse

func (*V1CreateWorkloadResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1CreateWorkloadResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1CreateWorkloadResponse) Validate

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

Validate validates this v1 create workload response

type V1DeploymentSpec

type V1DeploymentSpec struct {

	// The maximum number of instances in a deployment
	MaxReplicas int32 `json:"maxReplicas,omitempty"`

	// The minimum number of instances in a deployment
	MinReplicas int32 `json:"minReplicas,omitempty"`

	// scale settings
	ScaleSettings *V1ScaleSettings `json:"scaleSettings,omitempty"`

	// A collection of filters that match the deployment's scope
	Selectors []*V1MatchExpression `json:"selectors"`
}

V1DeploymentSpec A deployment's specification

swagger:model v1DeploymentSpec

func (*V1DeploymentSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*V1DeploymentSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1DeploymentSpec) Validate

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

Validate validates this v1 deployment spec

type V1DockerRegistryCredentials

type V1DockerRegistryCredentials struct {

	// The email address to use for the docker registry account
	Email string `json:"email,omitempty"`

	// The password that should be used to authenticate the image pull
	Password string `json:"password,omitempty"`

	// The server that the credentials should be used with
	//
	// The server that the credentials should be used with. This value will default to the docker hub registry when not set.
	Server string `json:"server,omitempty"`

	// The username that should be used for authenticate the image pull
	Username string `json:"username,omitempty"`
}

V1DockerRegistryCredentials The authentication configuration that should be used to pull images from a docker registry

swagger:model v1DockerRegistryCredentials

func (*V1DockerRegistryCredentials) MarshalBinary

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

MarshalBinary interface implementation

func (*V1DockerRegistryCredentials) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1DockerRegistryCredentials) Validate

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

Validate validates this v1 docker registry credentials

type V1EnvironmentVariable

type V1EnvironmentVariable struct {

	// A sensitive environment variable that should not be exposed
	SecretValue string `json:"secretValue,omitempty"`

	// An environment variable's value
	Value string `json:"value,omitempty"`
}

V1EnvironmentVariable The location to obtain a value for an environment variable

swagger:model v1EnvironmentVariable

func (*V1EnvironmentVariable) MarshalBinary

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

MarshalBinary interface implementation

func (*V1EnvironmentVariable) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1EnvironmentVariable) Validate

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

Validate validates this v1 environment variable

type V1EnvironmentVariableMapEntry

type V1EnvironmentVariableMapEntry map[string]V1EnvironmentVariable

V1EnvironmentVariableMapEntry A string to environment variable key/value pair

swagger:model v1EnvironmentVariableMapEntry

func (V1EnvironmentVariableMapEntry) Validate

func (m V1EnvironmentVariableMapEntry) Validate(formats strfmt.Registry) error

Validate validates this v1 environment variable map entry

type V1GetLocationsResponse

type V1GetLocationsResponse struct {

	// page info
	PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"`

	// The requested locations
	Results []*Workloadv1Location `json:"results"`
}

V1GetLocationsResponse A response from a request to retrieve the locations a workload may be created at

swagger:model v1GetLocationsResponse

func (*V1GetLocationsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1GetLocationsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1GetLocationsResponse) Validate

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

Validate validates this v1 get locations response

type V1GetMetricsRequestGranularity

type V1GetMetricsRequestGranularity string

V1GetMetricsRequestGranularity The time granularity of retrieved metrics

This field does not apply when retrieving INSTANCE type metrics

  • DEFAULT: The current default is PT5M
  • PT5M: Metrics every five minutes
  • PT1H: Metrics every hour
  • P1D: Metrics every day
  • PT1M: Metrics every one minute

swagger:model v1GetMetricsRequestGranularity

const (

	// V1GetMetricsRequestGranularityDEFAULT captures enum value "DEFAULT"
	V1GetMetricsRequestGranularityDEFAULT V1GetMetricsRequestGranularity = "DEFAULT"

	// V1GetMetricsRequestGranularityPT5M captures enum value "PT5M"
	V1GetMetricsRequestGranularityPT5M V1GetMetricsRequestGranularity = "PT5M"

	// V1GetMetricsRequestGranularityPT1H captures enum value "PT1H"
	V1GetMetricsRequestGranularityPT1H V1GetMetricsRequestGranularity = "PT1H"

	// V1GetMetricsRequestGranularityP1D captures enum value "P1D"
	V1GetMetricsRequestGranularityP1D V1GetMetricsRequestGranularity = "P1D"

	// V1GetMetricsRequestGranularityPT1M captures enum value "PT1M"
	V1GetMetricsRequestGranularityPT1M V1GetMetricsRequestGranularity = "PT1M"
)

func (V1GetMetricsRequestGranularity) Validate

Validate validates this v1 get metrics request granularity

type V1GetMetricsRequestTrafficRegion

type V1GetMetricsRequestTrafficRegion string

V1GetMetricsRequestTrafficRegion A geographic or network region to filter traffic metrics for

This field does not apply when retrieving INSTANCE type metrics

swagger:model v1GetMetricsRequestTrafficRegion

const (

	// V1GetMetricsRequestTrafficRegionALL captures enum value "ALL"
	V1GetMetricsRequestTrafficRegionALL V1GetMetricsRequestTrafficRegion = "ALL"

	// V1GetMetricsRequestTrafficRegionLOCALNODE captures enum value "LOCAL_NODE"
	V1GetMetricsRequestTrafficRegionLOCALNODE V1GetMetricsRequestTrafficRegion = "LOCAL_NODE"

	// V1GetMetricsRequestTrafficRegionLOCALPOP captures enum value "LOCAL_POP"
	V1GetMetricsRequestTrafficRegionLOCALPOP V1GetMetricsRequestTrafficRegion = "LOCAL_POP"

	// V1GetMetricsRequestTrafficRegionNORTHAMERICA captures enum value "NORTH_AMERICA"
	V1GetMetricsRequestTrafficRegionNORTHAMERICA V1GetMetricsRequestTrafficRegion = "NORTH_AMERICA"

	// V1GetMetricsRequestTrafficRegionEUROPE captures enum value "EUROPE"
	V1GetMetricsRequestTrafficRegionEUROPE V1GetMetricsRequestTrafficRegion = "EUROPE"

	// V1GetMetricsRequestTrafficRegionASIA captures enum value "ASIA"
	V1GetMetricsRequestTrafficRegionASIA V1GetMetricsRequestTrafficRegion = "ASIA"

	// V1GetMetricsRequestTrafficRegionOCEANIA captures enum value "OCEANIA"
	V1GetMetricsRequestTrafficRegionOCEANIA V1GetMetricsRequestTrafficRegion = "OCEANIA"

	// V1GetMetricsRequestTrafficRegionSOUTHAMERICA captures enum value "SOUTH_AMERICA"
	V1GetMetricsRequestTrafficRegionSOUTHAMERICA V1GetMetricsRequestTrafficRegion = "SOUTH_AMERICA"

	// V1GetMetricsRequestTrafficRegionMARKETPLACE captures enum value "MARKETPLACE"
	V1GetMetricsRequestTrafficRegionMARKETPLACE V1GetMetricsRequestTrafficRegion = "MARKETPLACE"

	// V1GetMetricsRequestTrafficRegionINTERNAL captures enum value "INTERNAL"
	V1GetMetricsRequestTrafficRegionINTERNAL V1GetMetricsRequestTrafficRegion = "INTERNAL"

	// V1GetMetricsRequestTrafficRegionINTERNET captures enum value "INTERNET"
	V1GetMetricsRequestTrafficRegionINTERNET V1GetMetricsRequestTrafficRegion = "INTERNET"
)

func (V1GetMetricsRequestTrafficRegion) Validate

Validate validates this v1 get metrics request traffic region

type V1GetMetricsRequestType

type V1GetMetricsRequestType string

V1GetMetricsRequestType The types of metrics that can be retrieved

- BANDWIDTH: Bandwidth ingress and egress metrics

  • INSTANCE: Instance CPU, memory, and filesystem metrics

swagger:model v1GetMetricsRequestType

const (

	// V1GetMetricsRequestTypeBANDWIDTH captures enum value "BANDWIDTH"
	V1GetMetricsRequestTypeBANDWIDTH V1GetMetricsRequestType = "BANDWIDTH"

	// V1GetMetricsRequestTypeINSTANCE captures enum value "INSTANCE"
	V1GetMetricsRequestTypeINSTANCE V1GetMetricsRequestType = "INSTANCE"
)

func (V1GetMetricsRequestType) Validate

func (m V1GetMetricsRequestType) Validate(formats strfmt.Registry) error

Validate validates this v1 get metrics request type

type V1GetWorkloadInstanceResponse

type V1GetWorkloadInstanceResponse struct {

	// instance
	Instance *Workloadv1Instance `json:"instance,omitempty"`
}

V1GetWorkloadInstanceResponse A response from a request to retrieve a workload's instances

swagger:model v1GetWorkloadInstanceResponse

func (*V1GetWorkloadInstanceResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1GetWorkloadInstanceResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1GetWorkloadInstanceResponse) Validate

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

Validate validates this v1 get workload instance response

type V1GetWorkloadInstancesResponse

type V1GetWorkloadInstancesResponse struct {

	// page info
	PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"`

	// The requested workload instances
	Results []*Workloadv1Instance `json:"results"`
}

V1GetWorkloadInstancesResponse A response from a request to retrieve a workload's instances

swagger:model v1GetWorkloadInstancesResponse

func (*V1GetWorkloadInstancesResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1GetWorkloadInstancesResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1GetWorkloadInstancesResponse) Validate

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

Validate validates this v1 get workload instances response

type V1GetWorkloadResponse

type V1GetWorkloadResponse struct {

	// workload
	Workload *V1Workload `json:"workload,omitempty"`
}

V1GetWorkloadResponse A response from a request to retrieve an individual workload

swagger:model v1GetWorkloadResponse

func (*V1GetWorkloadResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1GetWorkloadResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1GetWorkloadResponse) Validate

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

Validate validates this v1 get workload response

type V1GetWorkloadsResponse

type V1GetWorkloadsResponse struct {

	// page info
	PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"`

	// The requested workloads
	Results []*V1Workload `json:"results"`
}

V1GetWorkloadsResponse A response from a request to retrieve a stack's workloads

swagger:model v1GetWorkloadsResponse

func (*V1GetWorkloadsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1GetWorkloadsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1GetWorkloadsResponse) Validate

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

Validate validates this v1 get workloads response

type V1HTTPGetAction

type V1HTTPGetAction struct {

	// http headers
	HTTPHeaders V1StringMapEntry `json:"httpHeaders,omitempty"`

	// The path portion of the URL to request
	Path string `json:"path,omitempty"`

	// The TCP port to query in the HTTP request
	Port int32 `json:"port,omitempty"`

	// HTTP scheme to use in the HTTP request
	Scheme string `json:"scheme,omitempty"`
}

V1HTTPGetAction Execute an HTTP GET request against an endpoint running on an instance

swagger:model v1HTTPGetAction

func (*V1HTTPGetAction) MarshalBinary

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

MarshalBinary interface implementation

func (*V1HTTPGetAction) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1HTTPGetAction) Validate

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

Validate validates this v1 HTTP get action

type V1ImagePullCredential

type V1ImagePullCredential struct {

	// docker registry
	DockerRegistry *V1DockerRegistryCredentials `json:"dockerRegistry,omitempty"`
}

V1ImagePullCredential The credentials that should be used to pull the container image

swagger:model v1ImagePullCredential

func (*V1ImagePullCredential) MarshalBinary

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

MarshalBinary interface implementation

func (*V1ImagePullCredential) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1ImagePullCredential) Validate

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

Validate validates this v1 image pull credential

type V1InstancePort

type V1InstancePort struct {

	// Allow the internet to connect to the port
	//
	// When true, this port will be given an implicit network policy of priority 65534 permitting 0.0.0.0/0 access to the port. This can be overridden by creating network policies of a higher priority to block the port.
	EnableImplicitNetworkPolicy bool `json:"enableImplicitNetworkPolicy,omitempty"`

	// The network port
	Port int32 `json:"port,omitempty"`

	// The network protocol for the port
	//
	// Values are either "TCP" or "UDP". Defaults to "TCP".
	Protocol string `json:"protocol,omitempty"`
}

V1InstancePort A named port for an instance of a workload

swagger:model v1InstancePort

func (*V1InstancePort) MarshalBinary

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

MarshalBinary interface implementation

func (*V1InstancePort) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1InstancePort) Validate

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

Validate validates this v1 instance port

type V1InstancePortMapEntry

type V1InstancePortMapEntry map[string]V1InstancePort

V1InstancePortMapEntry A string to network port key/value pair

swagger:model v1InstancePortMapEntry

func (V1InstancePortMapEntry) Validate

func (m V1InstancePortMapEntry) Validate(formats strfmt.Registry) error

Validate validates this v1 instance port map entry

type V1InstanceVolumeMount

type V1InstanceVolumeMount struct {

	// The path in an instance to mount a volume
	MountPath string `json:"mountPath,omitempty"`

	// The slug of the volume claim to mount
	Slug string `json:"slug,omitempty"`
}

V1InstanceVolumeMount Describes mounting a volume on containers or vms in an instance

swagger:model v1InstanceVolumeMount

func (*V1InstanceVolumeMount) MarshalBinary

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

MarshalBinary interface implementation

func (*V1InstanceVolumeMount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1InstanceVolumeMount) Validate

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

Validate validates this v1 instance volume mount

type V1LogChunk

type V1LogChunk struct {

	// Raw log contents
	// Format: byte
	Bytes strfmt.Base64 `json:"bytes,omitempty"`
}

V1LogChunk A chunk of raw log data

swagger:model v1LogChunk

func (*V1LogChunk) MarshalBinary

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

MarshalBinary interface implementation

func (*V1LogChunk) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1LogChunk) Validate

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

Validate validates this v1 log chunk

type V1MatchExpression

type V1MatchExpression struct {

	// The name of the selector to perform a match against
	Key string `json:"key,omitempty"`

	// The operation to perform to match a selector
	//
	// Valid values are "In", "NotIn", "Exists", and "DoesNotExist".
	Operator string `json:"operator,omitempty"`

	// The values to match in the selector
	Values []string `json:"values"`
}

V1MatchExpression An expression to match selectors against a set of values

swagger:model v1MatchExpression

func (*V1MatchExpression) MarshalBinary

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

MarshalBinary interface implementation

func (*V1MatchExpression) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1MatchExpression) Validate

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

Validate validates this v1 match expression

type V1Metadata

type V1Metadata struct {

	// annotations
	Annotations V1StringMapEntry `json:"annotations,omitempty"`

	// The date that a metadata entry was created
	// Read Only: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"createdAt,omitempty"`

	// The date an entity was requested to be deleted
	// Read Only: true
	// Format: date-time
	DeleteRequestedAt *strfmt.DateTime `json:"deleteRequestedAt,omitempty"`

	// labels
	Labels V1StringMapEntry `json:"labels,omitempty"`

	// The date that a metadata entry was last updated
	// Read Only: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"`

	// A metadata entry's version number
	//
	// Metadata versions start at 1 when they are created and increment by 1 every time they are updated.
	Version string `json:"version,omitempty"`
}

V1Metadata Metadata associated with an entity

swagger:model v1Metadata

func (*V1Metadata) MarshalBinary

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

MarshalBinary interface implementation

func (*V1Metadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1Metadata) Validate

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

Validate validates this v1 metadata

type V1MetricSpec

type V1MetricSpec struct {

	// The target average value for the metric measured across all instances within a deployment, expressed as a percentage of requested resources.
	AverageUtilization int32 `json:"averageUtilization,omitempty"`

	// The target average value for the metric measured across all instances within a deployment, expressed as a quantity.
	AverageValue string `json:"averageValue,omitempty"`

	// The metric to measure against
	Metric string `json:"metric,omitempty"`
}

V1MetricSpec v1 metric spec

swagger:model v1MetricSpec

func (*V1MetricSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*V1MetricSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1MetricSpec) Validate

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

Validate validates this v1 metric spec

type V1NetworkInterface

type V1NetworkInterface struct {

	// A network interface's name
	Network string `json:"network,omitempty"`
}

V1NetworkInterface Network interfaces that will be created on instances in the workload

swagger:model v1NetworkInterface

func (*V1NetworkInterface) MarshalBinary

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

MarshalBinary interface implementation

func (*V1NetworkInterface) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1NetworkInterface) Validate

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

Validate validates this v1 network interface

type V1Probe

type V1Probe struct {

	// The minimum consecutive failures for a probe to be considered failed after having succeeded
	//
	// Defaults to 3. Minimum value is 1.
	FailureThreshold int32 `json:"failureThreshold,omitempty"`

	// http get
	HTTPGet *V1HTTPGetAction `json:"httpGet,omitempty"`

	// The number of seconds after a workload instance has started before liveness probes are initiated
	InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"`

	// How often, in seconds, to perform a probe
	//
	// Default to 10 seconds. Minimum value is 1.
	PeriodSeconds int32 `json:"periodSeconds,omitempty"`

	// The minimum consecutive successes for a probe to be considered successful after having failed
	//
	// Defaults to 1. Must be 1 for liveness. Minimum value is 1.
	SuccessThreshold int32 `json:"successThreshold,omitempty"`

	// tcp socket
	TCPSocket *V1TCPSocketAction `json:"tcpSocket,omitempty"`

	// The number of seconds after which a probe times out
	//
	// Defaults to 1 second. Minimum value is 1.
	TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"`
}

V1Probe A health check probe against a workload instance to determine if it is alive or ready to receive traffic

swagger:model v1Probe

func (*V1Probe) MarshalBinary

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

MarshalBinary interface implementation

func (*V1Probe) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1Probe) Validate

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

Validate validates this v1 probe

type V1ResourceRequirements

type V1ResourceRequirements struct {

	// limits
	Limits V1StringMapEntry `json:"limits,omitempty"`

	// requests
	Requests V1StringMapEntry `json:"requests,omitempty"`
}

V1ResourceRequirements Resource requirements for an object

Resource requirements are key/value pairs.

swagger:model v1ResourceRequirements

func (*V1ResourceRequirements) MarshalBinary

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

MarshalBinary interface implementation

func (*V1ResourceRequirements) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1ResourceRequirements) Validate

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

Validate validates this v1 resource requirements

type V1ScaleSettings

type V1ScaleSettings struct {

	// Metrics to observe for invoking scaling events.
	Metrics []*V1MetricSpec `json:"metrics"`
}

V1ScaleSettings v1 scale settings

swagger:model v1ScaleSettings

func (*V1ScaleSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*V1ScaleSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1ScaleSettings) Validate

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

Validate validates this v1 scale settings

type V1StringMapEntry

type V1StringMapEntry map[string]string

V1StringMapEntry A string to string key/value pair

swagger:model v1StringMapEntry

func (V1StringMapEntry) Validate

func (m V1StringMapEntry) Validate(formats strfmt.Registry) error

Validate validates this v1 string map entry

type V1TCPSocketAction

type V1TCPSocketAction struct {

	// The TCP port to quert
	Port int32 `json:"port,omitempty"`
}

V1TCPSocketAction Connect to an instance's TCP port

swagger:model v1TCPSocketAction

func (*V1TCPSocketAction) MarshalBinary

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

MarshalBinary interface implementation

func (*V1TCPSocketAction) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1TCPSocketAction) Validate

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

Validate validates this v1 TCP socket action

type V1Target

type V1Target struct {

	// spec
	Spec *V1TargetSpec `json:"spec,omitempty"`
}

V1Target How instances in a workload should be deployed

swagger:model v1Target

func (*V1Target) MarshalBinary

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

MarshalBinary interface implementation

func (*V1Target) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1Target) Validate

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

Validate validates this v1 target

type V1TargetMapEntry

type V1TargetMapEntry map[string]V1Target

V1TargetMapEntry A string to deployment target key/value pair

swagger:model v1TargetMapEntry

func (V1TargetMapEntry) Validate

func (m V1TargetMapEntry) Validate(formats strfmt.Registry) error

Validate validates this v1 target map entry

type V1TargetSpec

type V1TargetSpec struct {

	// The scope at which a deployment should be created. Valid values are: "cityCode"
	DeploymentScope string `json:"deploymentScope,omitempty"`

	// deployments
	Deployments *V1DeploymentSpec `json:"deployments,omitempty"`
}

V1TargetSpec The specification for a target

swagger:model v1TargetSpec

func (*V1TargetSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*V1TargetSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1TargetSpec) Validate

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

Validate validates this v1 target spec

type V1UpdateWorkloadRequest

type V1UpdateWorkloadRequest struct {

	// workload
	Workload *V1Workload `json:"workload,omitempty"`
}

V1UpdateWorkloadRequest v1 update workload request

swagger:model v1UpdateWorkloadRequest

func (*V1UpdateWorkloadRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*V1UpdateWorkloadRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1UpdateWorkloadRequest) Validate

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

Validate validates this v1 update workload request

type V1UpdateWorkloadResponse

type V1UpdateWorkloadResponse struct {

	// workload
	Workload *V1Workload `json:"workload,omitempty"`
}

V1UpdateWorkloadResponse A response from a request to update a workload

swagger:model v1UpdateWorkloadResponse

func (*V1UpdateWorkloadResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*V1UpdateWorkloadResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1UpdateWorkloadResponse) Validate

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

Validate validates this v1 update workload response

type V1VirtualMachineSpec

type V1VirtualMachineSpec struct {

	// The location of a Docker image to run as a virtual machine
	Image string `json:"image,omitempty"`

	// liveness probe
	LivenessProbe *V1Probe `json:"livenessProbe,omitempty"`

	// ports
	Ports V1InstancePortMapEntry `json:"ports,omitempty"`

	// readiness probe
	ReadinessProbe *V1Probe `json:"readinessProbe,omitempty"`

	// resources
	Resources *V1ResourceRequirements `json:"resources,omitempty"`

	// Base64 encoded cloud-init compatible user-data
	UserData string `json:"userData,omitempty"`

	// Volumes to mount in the virtual machine
	VolumeMounts []*V1InstanceVolumeMount `json:"volumeMounts"`
}

V1VirtualMachineSpec The specification for the desired state of a virtual machine in a workload

swagger:model v1VirtualMachineSpec

func (*V1VirtualMachineSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*V1VirtualMachineSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1VirtualMachineSpec) Validate

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

Validate validates this v1 virtual machine spec

type V1VirtualMachineSpecMapEntry

type V1VirtualMachineSpecMapEntry map[string]V1VirtualMachineSpec

V1VirtualMachineSpecMapEntry A string to virtual machine configuration key/value pair

swagger:model v1VirtualMachineSpecMapEntry

func (V1VirtualMachineSpecMapEntry) Validate

func (m V1VirtualMachineSpecMapEntry) Validate(formats strfmt.Registry) error

Validate validates this v1 virtual machine spec map entry

type V1VirtualMachineStatus

type V1VirtualMachineStatus struct {

	// A longer message with details about why the virtual machine is in its current phase
	Message string `json:"message,omitempty"`

	// The name of the virtual machine the status applies to
	Name string `json:"name,omitempty"`

	// phase
	Phase VirtualMachineStatusPhase `json:"phase,omitempty"`

	// A short reason why the virtual machine is in its current phase
	Reason string `json:"reason,omitempty"`
}

V1VirtualMachineStatus The status of a Virtual Machine

swagger:model v1VirtualMachineStatus

func (*V1VirtualMachineStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*V1VirtualMachineStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1VirtualMachineStatus) Validate

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

Validate validates this v1 virtual machine status

type V1VolumeClaim

type V1VolumeClaim struct {

	// A volume claim's unique identifier
	// Read Only: true
	ID string `json:"id,omitempty"`

	// metadata
	Metadata *V1Metadata `json:"metadata,omitempty"`

	// A volume claim's name as it appears in the StackPath portal
	Name string `json:"name,omitempty"`

	// phase
	// Read Only: true
	Phase VolumeClaimVolumeClaimPhase `json:"phase,omitempty"`

	// A volume claim's programmatic name
	//
	// Volume claim slugs are used to programatically label a claim
	Slug string `json:"slug,omitempty"`

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

	// The ID of the stack that a volume claim belongs to
	// Read Only: true
	StackID string `json:"stackId,omitempty"`
}

V1VolumeClaim A claim for a volume

Volumes may be attached to workload instance containers or virtual machines

swagger:model v1VolumeClaim

func (*V1VolumeClaim) MarshalBinary

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

MarshalBinary interface implementation

func (*V1VolumeClaim) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1VolumeClaim) Validate

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

Validate validates this v1 volume claim

type V1VolumeClaimSpec

type V1VolumeClaimSpec struct {

	// resources
	Resources *V1ResourceRequirements `json:"resources,omitempty"`
}

V1VolumeClaimSpec The specification for a volume claim

swagger:model v1VolumeClaimSpec

func (*V1VolumeClaimSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*V1VolumeClaimSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1VolumeClaimSpec) Validate

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

Validate validates this v1 volume claim spec

type V1Workload

type V1Workload struct {

	// A workload's unique identifier
	// Read Only: true
	ID string `json:"id,omitempty"`

	// metadata
	Metadata *V1Metadata `json:"metadata,omitempty"`

	// A workload's name as it appears in the StackPath portal
	Name string `json:"name,omitempty"`

	// A workload's programmatic name
	//
	// Workload slugs are used to build its instances names
	Slug string `json:"slug,omitempty"`

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

	// The ID of the stack that a workload belongs to
	// Read Only: true
	StackID string `json:"stackId,omitempty"`

	// status
	// Read Only: true
	Status V1WorkloadStatus `json:"status,omitempty"`

	// targets
	Targets V1TargetMapEntry `json:"targets,omitempty"`
}

V1Workload A computing workload

Workloads define a computing application to deploy to StackPath's edge network.

swagger:model v1Workload

func (*V1Workload) MarshalBinary

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

MarshalBinary interface implementation

func (*V1Workload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1Workload) Validate

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

Validate validates this v1 workload

type V1WorkloadSpec

type V1WorkloadSpec struct {

	// containers
	Containers V1ContainerSpecMapEntry `json:"containers,omitempty"`

	// image pull credentials
	ImagePullCredentials V1WrappedImagePullCredentials `json:"imagePullCredentials,omitempty"`

	// Network interfaces to bind to the workload's instances
	NetworkInterfaces []*V1NetworkInterface `json:"networkInterfaces"`

	// virtual machines
	VirtualMachines V1VirtualMachineSpecMapEntry `json:"virtualMachines,omitempty"`

	// A list of claims that instances may reference
	//
	// The slug of the claim will be used in combination with the name of the instance to create a stable identifier. The slug should be used in the volume mount specifications for containers and VMs.
	VolumeClaimTemplates []*V1VolumeClaim `json:"volumeClaimTemplates"`
}

V1WorkloadSpec The specification for the desired state of a workload

swagger:model v1WorkloadSpec

func (*V1WorkloadSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*V1WorkloadSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*V1WorkloadSpec) Validate

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

Validate validates this v1 workload spec

type V1WorkloadStatus

type V1WorkloadStatus string

V1WorkloadStatus Which status a workload is currently in

- ACTIVE: The workload is active

  • SUSPENDED: The workload is suspended
  • BILLING_SUSPENDED: The workload is suspended due to non-payment
  • INACTIVE: The workload is inactive or has been deleted

swagger:model v1WorkloadStatus

const (

	// V1WorkloadStatusACTIVE captures enum value "ACTIVE"
	V1WorkloadStatusACTIVE V1WorkloadStatus = "ACTIVE"

	// V1WorkloadStatusSUSPENDED captures enum value "SUSPENDED"
	V1WorkloadStatusSUSPENDED V1WorkloadStatus = "SUSPENDED"

	// V1WorkloadStatusBILLINGSUSPENDED captures enum value "BILLING_SUSPENDED"
	V1WorkloadStatusBILLINGSUSPENDED V1WorkloadStatus = "BILLING_SUSPENDED"

	// V1WorkloadStatusINACTIVE captures enum value "INACTIVE"
	V1WorkloadStatusINACTIVE V1WorkloadStatus = "INACTIVE"
)

func (V1WorkloadStatus) Validate

func (m V1WorkloadStatus) Validate(formats strfmt.Registry) error

Validate validates this v1 workload status

type V1WrappedImagePullCredentials

type V1WrappedImagePullCredentials []*V1ImagePullCredential

V1WrappedImagePullCredentials The credentials that should be used to pull the container image

The credentials that should be used to pull the container image

swagger:model v1WrappedImagePullCredentials

func (V1WrappedImagePullCredentials) Validate

func (m V1WrappedImagePullCredentials) Validate(formats strfmt.Registry) error

Validate validates this v1 wrapped image pull credentials

type VirtualMachineStatusPhase

type VirtualMachineStatusPhase string

VirtualMachineStatusPhase virtual machine status phase

swagger:model VirtualMachineStatusPhase

const (

	// VirtualMachineStatusPhaseUNKNOWN captures enum value "UNKNOWN"
	VirtualMachineStatusPhaseUNKNOWN VirtualMachineStatusPhase = "UNKNOWN"

	// VirtualMachineStatusPhasePENDING captures enum value "PENDING"
	VirtualMachineStatusPhasePENDING VirtualMachineStatusPhase = "PENDING"

	// VirtualMachineStatusPhaseSCHEDULING captures enum value "SCHEDULING"
	VirtualMachineStatusPhaseSCHEDULING VirtualMachineStatusPhase = "SCHEDULING"

	// VirtualMachineStatusPhaseSTARTING captures enum value "STARTING"
	VirtualMachineStatusPhaseSTARTING VirtualMachineStatusPhase = "STARTING"

	// VirtualMachineStatusPhaseRUNNING captures enum value "RUNNING"
	VirtualMachineStatusPhaseRUNNING VirtualMachineStatusPhase = "RUNNING"

	// VirtualMachineStatusPhaseSTOPPED captures enum value "STOPPED"
	VirtualMachineStatusPhaseSTOPPED VirtualMachineStatusPhase = "STOPPED"

	// VirtualMachineStatusPhaseFAILED captures enum value "FAILED"
	VirtualMachineStatusPhaseFAILED VirtualMachineStatusPhase = "FAILED"
)

func (VirtualMachineStatusPhase) Validate

func (m VirtualMachineStatusPhase) Validate(formats strfmt.Registry) error

Validate validates this virtual machine status phase

type VolumeClaimVolumeClaimPhase

type VolumeClaimVolumeClaimPhase string

VolumeClaimVolumeClaimPhase Which phase a volume claim is currently in

- VOLUME_CLAIM_PHASE_UNSPECIFIED: StackPath is unable to determine the volume claim's state

  • PENDING: The volume claim is pending
  • UNBOUND: The volume claim is unbound
  • BOUND: The volume claim is bound to an instance

swagger:model VolumeClaimVolumeClaimPhase

const (

	// VolumeClaimVolumeClaimPhaseVOLUMECLAIMPHASEUNSPECIFIED captures enum value "VOLUME_CLAIM_PHASE_UNSPECIFIED"
	VolumeClaimVolumeClaimPhaseVOLUMECLAIMPHASEUNSPECIFIED VolumeClaimVolumeClaimPhase = "VOLUME_CLAIM_PHASE_UNSPECIFIED"

	// VolumeClaimVolumeClaimPhasePENDING captures enum value "PENDING"
	VolumeClaimVolumeClaimPhasePENDING VolumeClaimVolumeClaimPhase = "PENDING"

	// VolumeClaimVolumeClaimPhaseUNBOUND captures enum value "UNBOUND"
	VolumeClaimVolumeClaimPhaseUNBOUND VolumeClaimVolumeClaimPhase = "UNBOUND"

	// VolumeClaimVolumeClaimPhaseBOUND captures enum value "BOUND"
	VolumeClaimVolumeClaimPhaseBOUND VolumeClaimVolumeClaimPhase = "BOUND"
)

func (VolumeClaimVolumeClaimPhase) Validate

func (m VolumeClaimVolumeClaimPhase) Validate(formats strfmt.Registry) error

Validate validates this volume claim volume claim phase

type Workloadv1Instance

type Workloadv1Instance struct {

	// Status of the containers running within the workload instance
	ContainerStatuses []*V1ContainerStatus `json:"containerStatuses"`

	// containers
	Containers V1ContainerSpecMapEntry `json:"containers,omitempty"`

	// The date an instance was created
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// The date an instance was deleted
	// Format: date-time
	DeletedAt strfmt.DateTime `json:"deletedAt,omitempty"`

	// An instance's publicly accessible IP address
	ExternalIPAddress string `json:"externalIpAddress,omitempty"`

	// An instance's unique identifier
	ID string `json:"id,omitempty"`

	// An instance's IP address
	IPAddress string `json:"ipAddress,omitempty"`

	// location
	Location *Workloadv1Location `json:"location,omitempty"`

	// A longer message that provides more detail on why an instance is in a phase
	Message string `json:"message,omitempty"`

	// metadata
	Metadata *V1Metadata `json:"metadata,omitempty"`

	// An instance's name
	//
	// Instance names are generated from their corresponsing workload's slug, followed by a unique hash
	Name string `json:"name,omitempty"`

	// An instance's network interfaces
	NetworkInterfaces []*Workloadv1NetworkInterfaceStatus `json:"networkInterfaces"`

	// phase
	Phase Workloadv1InstanceInstancePhase `json:"phase,omitempty"`

	// A short reason that explains why an instance is in a phase
	Reason string `json:"reason,omitempty"`

	// resources
	Resources *V1ResourceRequirements `json:"resources,omitempty"`

	// The date an instance was scheduled
	// Format: date-time
	ScheduledAt strfmt.DateTime `json:"scheduledAt,omitempty"`

	// The ID of the stack that an instance belongs to
	StackID string `json:"stackId,omitempty"`

	// The date an instance was started
	// Format: date-time
	StartedAt strfmt.DateTime `json:"startedAt,omitempty"`

	// The status of the virtual machines running within the workload instance
	VirtualMachineStatuses []*V1VirtualMachineStatus `json:"virtualMachineStatuses"`

	// virtual machines
	VirtualMachines V1VirtualMachineSpecMapEntry `json:"virtualMachines,omitempty"`

	// The ID of the workload that an instance belongs to
	WorkloadID string `json:"workloadId,omitempty"`
}

Workloadv1Instance An instance of a workload deployment

swagger:model workloadv1Instance

func (*Workloadv1Instance) MarshalBinary

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

MarshalBinary interface implementation

func (*Workloadv1Instance) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Workloadv1Instance) Validate

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

Validate validates this workloadv1 instance

type Workloadv1InstanceInstancePhase

type Workloadv1InstanceInstancePhase string

Workloadv1InstanceInstancePhase An instance's startup state

- INSTANCE_PHASE_UNSPECIFIED: StackPath is unable to determine the instance's startup state

  • STARTING: The instance is still initializing
  • RUNNING: The instance is running
  • FAILED: The instance failed to start
  • COMPLETED: The instance finished running
  • SCHEDULING: The instance is being scheduled
  • STOPPED: The instance is stopped

swagger:model workloadv1InstanceInstancePhase

const (

	// Workloadv1InstanceInstancePhaseINSTANCEPHASEUNSPECIFIED captures enum value "INSTANCE_PHASE_UNSPECIFIED"
	Workloadv1InstanceInstancePhaseINSTANCEPHASEUNSPECIFIED Workloadv1InstanceInstancePhase = "INSTANCE_PHASE_UNSPECIFIED"

	// Workloadv1InstanceInstancePhaseSTARTING captures enum value "STARTING"
	Workloadv1InstanceInstancePhaseSTARTING Workloadv1InstanceInstancePhase = "STARTING"

	// Workloadv1InstanceInstancePhaseRUNNING captures enum value "RUNNING"
	Workloadv1InstanceInstancePhaseRUNNING Workloadv1InstanceInstancePhase = "RUNNING"

	// Workloadv1InstanceInstancePhaseFAILED captures enum value "FAILED"
	Workloadv1InstanceInstancePhaseFAILED Workloadv1InstanceInstancePhase = "FAILED"

	// Workloadv1InstanceInstancePhaseCOMPLETED captures enum value "COMPLETED"
	Workloadv1InstanceInstancePhaseCOMPLETED Workloadv1InstanceInstancePhase = "COMPLETED"

	// Workloadv1InstanceInstancePhaseSCHEDULING captures enum value "SCHEDULING"
	Workloadv1InstanceInstancePhaseSCHEDULING Workloadv1InstanceInstancePhase = "SCHEDULING"

	// Workloadv1InstanceInstancePhaseSTOPPED captures enum value "STOPPED"
	Workloadv1InstanceInstancePhaseSTOPPED Workloadv1InstanceInstancePhase = "STOPPED"
)

func (Workloadv1InstanceInstancePhase) Validate

Validate validates this workloadv1 instance instance phase

type Workloadv1Location

type Workloadv1Location struct {

	// A location's city
	City string `json:"city,omitempty"`

	// A location's city, expressed as an IATA airport code
	CityCode string `json:"cityCode,omitempty"`

	// A location's continent
	Continent string `json:"continent,omitempty"`

	// A location's continent code
	ContinentCode string `json:"continentCode,omitempty"`

	// A location's country
	Country string `json:"country,omitempty"`

	// A location's ISO-3166-1 alpha-2 country code
	CountryCode string `json:"countryCode,omitempty"`

	// A location's geographic latitude
	Latitude float64 `json:"latitude,omitempty"`

	// A location's geographic longitude
	Longitude float64 `json:"longitude,omitempty"`

	// A human readable location name
	Name string `json:"name,omitempty"`

	// A location's state or province
	Region string `json:"region,omitempty"`

	// A location's ISO-3166-2 region code
	RegionCode string `json:"regionCode,omitempty"`

	// A location's subdivision
	Subdivision string `json:"subdivision,omitempty"`

	// A location's subdivision code
	SubdivisionCode string `json:"subdivisionCode,omitempty"`
}

Workloadv1Location Geographic location information

swagger:model workloadv1Location

func (*Workloadv1Location) MarshalBinary

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

MarshalBinary interface implementation

func (*Workloadv1Location) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Workloadv1Location) Validate

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

Validate validates this workloadv1 location

type Workloadv1NetworkInterfaceStatus

type Workloadv1NetworkInterfaceStatus struct {

	// A network interface's gateway address
	Gateway string `json:"gateway,omitempty"`

	// A network interface's primary IP address
	IPAddress string `json:"ipAddress,omitempty"`

	// Additional IP addresses bound to a network interface
	IPAddressAliases []string `json:"ipAddressAliases"`

	// A network interface's name
	Network string `json:"network,omitempty"`
}

Workloadv1NetworkInterfaceStatus Network interfaces that are attached to an instance in a workload

swagger:model workloadv1NetworkInterfaceStatus

func (*Workloadv1NetworkInterfaceStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*Workloadv1NetworkInterfaceStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Workloadv1NetworkInterfaceStatus) Validate

Validate validates this workloadv1 network interface status

Source Files

Jump to

Keyboard shortcuts

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