Documentation ¶
Index ¶
- Constants
- type Cluster
- type ClusterStatus
- type ClusterStatusProblemsItems
- func (m *ClusterStatusProblemsItems) MarshalBinary() ([]byte, error)
- func (m ClusterStatusProblemsItems) MarshalJSON() ([]byte, error)
- func (m *ClusterStatusProblemsItems) UnmarshalBinary(b []byte) error
- func (m *ClusterStatusProblemsItems) UnmarshalJSON(data []byte) error
- func (m *ClusterStatusProblemsItems) Validate(formats strfmt.Registry) error
- type ClusterStatusProblemsItems0
- func (m *ClusterStatusProblemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ClusterStatusProblemsItems0) MarshalBinary() ([]byte, error)
- func (m ClusterStatusProblemsItems0) MarshalJSON() ([]byte, error)
- func (m *ClusterStatusProblemsItems0) UnmarshalBinary(b []byte) error
- func (m *ClusterStatusProblemsItems0) UnmarshalJSON(data []byte) error
- func (m *ClusterStatusProblemsItems0) Validate(formats strfmt.Registry) error
- type ClusterUpdate
- type ConfigValue
- type Error
- type InfrastructureAccount
- type InfrastructureAccountUpdate
- func (m *InfrastructureAccountUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *InfrastructureAccountUpdate) MarshalBinary() ([]byte, error)
- func (m *InfrastructureAccountUpdate) UnmarshalBinary(b []byte) error
- func (m *InfrastructureAccountUpdate) Validate(formats strfmt.Registry) error
- type ListClustersOKBody
- type ListInfrastructureAccountsOKBody
- type ListNodePoolsOKBody
- type NodePool
Constants ¶
const ( // ClusterLifecycleStatusRequested captures enum value "requested" ClusterLifecycleStatusRequested string = "requested" // ClusterLifecycleStatusCreating captures enum value "creating" ClusterLifecycleStatusCreating string = "creating" // ClusterLifecycleStatusReady captures enum value "ready" ClusterLifecycleStatusReady string = "ready" // ClusterLifecycleStatusDecommissionDashRequested captures enum value "decommission-requested" ClusterLifecycleStatusDecommissionDashRequested string = "decommission-requested" // ClusterLifecycleStatusDecommissioned captures enum value "decommissioned" ClusterLifecycleStatusDecommissioned string = "decommissioned" )
const ( // ClusterUpdateLifecycleStatusRequested captures enum value "requested" ClusterUpdateLifecycleStatusRequested string = "requested" // ClusterUpdateLifecycleStatusCreating captures enum value "creating" ClusterUpdateLifecycleStatusCreating string = "creating" // ClusterUpdateLifecycleStatusReady captures enum value "ready" ClusterUpdateLifecycleStatusReady string = "ready" // ClusterUpdateLifecycleStatusDecommissionDashRequested captures enum value "decommission-requested" ClusterUpdateLifecycleStatusDecommissionDashRequested string = "decommission-requested" // ClusterUpdateLifecycleStatusDecommissioned captures enum value "decommissioned" ClusterUpdateLifecycleStatusDecommissioned string = "decommissioned" )
const ( // InfrastructureAccountLifecycleStatusRequested captures enum value "requested" InfrastructureAccountLifecycleStatusRequested string = "requested" // InfrastructureAccountLifecycleStatusCreating captures enum value "creating" InfrastructureAccountLifecycleStatusCreating string = "creating" // InfrastructureAccountLifecycleStatusReady captures enum value "ready" InfrastructureAccountLifecycleStatusReady string = "ready" // InfrastructureAccountLifecycleStatusDecommissioned captures enum value "decommissioned" InfrastructureAccountLifecycleStatusDecommissioned string = "decommissioned" )
const ( // InfrastructureAccountUpdateLifecycleStatusRequested captures enum value "requested" InfrastructureAccountUpdateLifecycleStatusRequested string = "requested" // InfrastructureAccountUpdateLifecycleStatusCreating captures enum value "creating" InfrastructureAccountUpdateLifecycleStatusCreating string = "creating" // InfrastructureAccountUpdateLifecycleStatusReady captures enum value "ready" InfrastructureAccountUpdateLifecycleStatusReady string = "ready" // InfrastructureAccountUpdateLifecycleStatusDecommissioned captures enum value "decommissioned" InfrastructureAccountUpdateLifecycleStatusDecommissioned string = "decommissioned" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { // Human readable alias for the Kubernetes cluster. The alias is unique // but can be changed. // // Example: production-cluster // Required: true // Pattern: ^[a-z][a-z0-9-]*[a-z0-9]$ Alias *string `json:"alias"` // URL of the Kubernetes API server endpoint // Example: https://kube-1.foo.example.org/ // Required: true APIServerURL *string `json:"api_server_url"` // A version channel for the cluster. // Example: alpha // Required: true Channel *string `json:"channel"` // Configuration items unique to the cluster. E.g. custom API key used // by one of the cluster services. // // Example: {"product_x_key":"abcde","product_y_key":"12345"} ConfigItems map[string]string `json:"config_items,omitempty"` // Level of criticality as defined by tech controlling. 1 is non critical, 2 is standard production, 3 is PCI. // Example: 2 // Required: true CriticalityLevel *int32 `json:"criticality_level"` // The environment in which the cluster run. This field is set at // creation time and cannot be modified. // // Example: production // Required: true Environment *string `json:"environment"` // Globally unique ID of the Kubernetes cluster // Example: aws:123456789012:eu-central-1:kube-1 // Required: true ID *string `json:"id"` // The identifier of the infrastructure account in which the cluster will live in // Example: aws:123456789012 // Required: true InfrastructureAccount *string `json:"infrastructure_account"` // Status of the cluster. // Example: ready // Required: true // Enum: [requested creating ready decommission-requested decommissioned] LifecycleStatus *string `json:"lifecycle_status"` // Cluster identifier which is local to the region // Example: kube-1 // Required: true LocalID *string `json:"local_id"` // node pools NodePools []*NodePool `json:"node_pools"` // The provider of the cluster. Possible values are "zalando-aws", "GKE", ... // Example: zalando-aws // Required: true Provider *string `json:"provider"` // The region of the cluster // Example: eu-central-1 // Required: true Region *string `json:"region"` // status Status *ClusterStatus `json:"status,omitempty"` }
Cluster cluster
swagger:model Cluster
func (*Cluster) ContextValidate ¶
ContextValidate validate this cluster based on the context it is used
func (*Cluster) MarshalBinary ¶
MarshalBinary interface implementation
func (*Cluster) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ClusterStatus ¶
type ClusterStatus struct { // Current version of the cluster. This can refer to a commit hash or // any valid version string in the context. // // Example: a1b2c3d4e5f6 CurrentVersion string `json:"current_version,omitempty"` // Last working version of the cluster. This can refer to a commit // hash or any valid version string in the context. In case any // problems are defined for the current_version then it should be // safe to roll back to this last version. // // Example: a2b3c4d5e6f7 LastVersion string `json:"last_version,omitempty"` // Next version of the cluster. This field indicates that the cluster is // being updated to a new version. This can refer to a commit hash or any // valid version string in the context. // // Example: a3b4c5d6e7f8 NextVersion string `json:"next_version,omitempty"` // problems Problems []*ClusterStatusProblemsItems0 `json:"problems"` }
ClusterStatus cluster status
swagger:model ClusterStatus
func (*ClusterStatus) ContextValidate ¶
ContextValidate validate this cluster status based on the context it is used
func (*ClusterStatus) MarshalBinary ¶
func (m *ClusterStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterStatus) UnmarshalBinary ¶
func (m *ClusterStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClusterStatusProblemsItems ¶
type ClusterStatusProblemsItems struct { // A human-readable explanation specific to this occurrence of // the problem. // Detail string `json:"detail,omitempty"` // A URI reference that identifies the specific occurrence of // the problem. // Instance string `json:"instance,omitempty"` // The HTTP status code generated by the origin server for this // occurence of the problem. // Status int32 `json:"status,omitempty"` // A short, human-readable summary of the problem type. // // Required: true Title *string `json:"title"` // A URI reference the indentifies the problem type. // Required: true Type *string `json:"type"` // cluster status problems items ClusterStatusProblemsItems map[string]string `json:"-"` }
ClusterStatusProblemsItems cluster status problems items swagger:model clusterStatusProblemsItems
func (*ClusterStatusProblemsItems) MarshalBinary ¶
func (m *ClusterStatusProblemsItems) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ClusterStatusProblemsItems) MarshalJSON ¶
func (m ClusterStatusProblemsItems) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with additional properties into a JSON object
func (*ClusterStatusProblemsItems) UnmarshalBinary ¶
func (m *ClusterStatusProblemsItems) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ClusterStatusProblemsItems) UnmarshalJSON ¶
func (m *ClusterStatusProblemsItems) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals this object with additional properties from JSON
type ClusterStatusProblemsItems0 ¶
type ClusterStatusProblemsItems0 struct { // A human-readable explanation specific to this occurrence of // the problem. // // Example: Cluster lifecycle manager was unable to apply the\nkubernetes-dashboard service because of insufficient\npermissions.\n Detail string `json:"detail,omitempty"` // A URI reference that identifies the specific occurrence of // the problem. // // Example: service/kubernetes-dashboard Instance string `json:"instance,omitempty"` // The HTTP status code generated by the origin server for this // occurence of the problem. // // Example: 401 Status int32 `json:"status,omitempty"` // A short, human-readable summary of the problem type. // // Example: Failed to apply service 'kubernetes-dashboard' // Required: true Title *string `json:"title"` // A URI reference the indentifies the problem type. // Example: https://cluster-status.example.org/service-apply-failed // Required: true Type *string `json:"type"` // cluster status problems items0 ClusterStatusProblemsItems0 map[string]string `json:"-"` }
ClusterStatusProblemsItems0 cluster status problems items0
swagger:model ClusterStatusProblemsItems0
func (*ClusterStatusProblemsItems0) ContextValidate ¶
func (m *ClusterStatusProblemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this cluster status problems items0 based on context it is used
func (*ClusterStatusProblemsItems0) MarshalBinary ¶
func (m *ClusterStatusProblemsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ClusterStatusProblemsItems0) MarshalJSON ¶
func (m ClusterStatusProblemsItems0) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with additional properties into a JSON object
func (*ClusterStatusProblemsItems0) UnmarshalBinary ¶
func (m *ClusterStatusProblemsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ClusterStatusProblemsItems0) UnmarshalJSON ¶
func (m *ClusterStatusProblemsItems0) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals this object with additional properties from JSON
type ClusterUpdate ¶
type ClusterUpdate struct { // Human readable alias for the Kubernetes cluster. The alias is unique // but can be changed. // // Example: production-cluster Alias string `json:"alias,omitempty"` // URL of the Kubernetes API server endpoint // Example: https://kube-1.foo.example.org/ APIServerURL string `json:"api_server_url,omitempty"` // A version channel for the cluster. Possible values are "alpha", "stable" // Example: alpha Channel string `json:"channel,omitempty"` // Configuration items unique to the cluster. E.g. custom API key used // by one of the cluster services. // // Example: {"product_x_key":"abcde","product_y_key":"12345"} ConfigItems map[string]string `json:"config_items,omitempty"` // Status of the cluster. // Example: ready // Enum: [requested creating ready decommission-requested decommissioned] LifecycleStatus string `json:"lifecycle_status,omitempty"` // The provider of the cluster. Possible values are "zalando-aws", "GKE", ... // Example: zalando-aws Provider string `json:"provider,omitempty"` // status Status *ClusterStatus `json:"status,omitempty"` }
ClusterUpdate cluster update
swagger:model ClusterUpdate
func (*ClusterUpdate) ContextValidate ¶
ContextValidate validate this cluster update based on the context it is used
func (*ClusterUpdate) MarshalBinary ¶
func (m *ClusterUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterUpdate) UnmarshalBinary ¶
func (m *ClusterUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ConfigValue ¶
type ConfigValue struct { // Value of the Config value. // Example: secret-key-id // Required: true Value *string `json:"value"` }
ConfigValue config value
swagger:model ConfigValue
func (*ConfigValue) ContextValidate ¶
ContextValidate validates this config value based on context it is used
func (*ConfigValue) MarshalBinary ¶
func (m *ConfigValue) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ConfigValue) UnmarshalBinary ¶
func (m *ConfigValue) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct { // code Code int32 `json:"code,omitempty"` // fields Fields string `json:"fields,omitempty"` // message Message string `json:"message,omitempty"` }
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type InfrastructureAccount ¶
type InfrastructureAccount struct { // Level of criticality as defined by tech controlling. 1 is non critical, 2 is standard production, 3 is PCI // Example: 2 // Required: true CriticalityLevel *int32 `json:"criticality_level"` // Environment. possible values are "production" or "staging". This field is set at creation time and cannot be modified. // Example: production // Required: true Environment *string `json:"environment"` // The external identifier of the account (i.e. AWS account ID) // Example: 123456789012 // Required: true ExternalID *string `json:"external_id"` // Globally unique ID of the infrastructure account. // Example: aws:123456789012 // Required: true ID *string `json:"id"` // Lifecycle Status is used to describe the current status of the account. // Required: true // Enum: [requested creating ready decommissioned] LifecycleStatus *string `json:"lifecycle_status"` // Name of the infrastructure account // Example: foo // Required: true Name *string `json:"name"` // Owner of the infrastructure account (references an object in the organization service) // Example: team/bar // Required: true Owner *string `json:"owner"` // Type of the infrastructure account. Possible types are "aws", "gcp", "dc". This field is set at creation time and cannot be modified. // Example: aws // Required: true Type *string `json:"type"` }
InfrastructureAccount infrastructure account
swagger:model InfrastructureAccount
func (*InfrastructureAccount) ContextValidate ¶
ContextValidate validates this infrastructure account based on context it is used
func (*InfrastructureAccount) MarshalBinary ¶
func (m *InfrastructureAccount) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InfrastructureAccount) UnmarshalBinary ¶
func (m *InfrastructureAccount) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InfrastructureAccountUpdate ¶
type InfrastructureAccountUpdate struct { // Lifecycle Status is used to describe the current status of the account. // Enum: [requested creating ready decommissioned] LifecycleStatus string `json:"lifecycle_status,omitempty"` // Name of the infrastructure account // Example: foo Name string `json:"name,omitempty"` // Owner of the infrastructure account (references an object in the organization service) // Example: team/bar Owner string `json:"owner,omitempty"` }
InfrastructureAccountUpdate infrastructure account update
swagger:model InfrastructureAccountUpdate
func (*InfrastructureAccountUpdate) ContextValidate ¶
func (m *InfrastructureAccountUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this infrastructure account update based on context it is used
func (*InfrastructureAccountUpdate) MarshalBinary ¶
func (m *InfrastructureAccountUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InfrastructureAccountUpdate) UnmarshalBinary ¶
func (m *InfrastructureAccountUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListClustersOKBody ¶
type ListClustersOKBody struct { // items Items []*Cluster `json:"items"` }
ListClustersOKBody list clusters o k body swagger:model listClustersOKBody
func (*ListClustersOKBody) MarshalBinary ¶
func (m *ListClustersOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListClustersOKBody) UnmarshalBinary ¶
func (m *ListClustersOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListInfrastructureAccountsOKBody ¶
type ListInfrastructureAccountsOKBody struct { // items Items []*InfrastructureAccount `json:"items"` }
ListInfrastructureAccountsOKBody list infrastructure accounts o k body swagger:model listInfrastructureAccountsOKBody
func (*ListInfrastructureAccountsOKBody) MarshalBinary ¶
func (m *ListInfrastructureAccountsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListInfrastructureAccountsOKBody) UnmarshalBinary ¶
func (m *ListInfrastructureAccountsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListNodePoolsOKBody ¶
type ListNodePoolsOKBody struct { // items Items []*NodePool `json:"items"` }
ListNodePoolsOKBody list node pools o k body swagger:model listNodePoolsOKBody
func (*ListNodePoolsOKBody) MarshalBinary ¶
func (m *ListNodePoolsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListNodePoolsOKBody) UnmarshalBinary ¶
func (m *ListNodePoolsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodePool ¶
type NodePool struct { // A discount strategy indicates the type of discount to be associated with the node pool. This might affect the availability of the nodes in the pools in case of preemptible or spot instances. // Possible values are "none", "aggressive", "moderate", "reasonable" #TODO naming should be "reasonable" :-D // // Example: none // Required: true DiscountStrategy *string `json:"discount_strategy"` // Type of the instance to use for the nodes in the pool. All the nodes in the pool share the same instance types // Example: m4.medium // Required: true InstanceType *string `json:"instance_type"` // Name of the node pool // Example: pool-1 // Required: true Name *string `json:"name"` // Profile used for the node pool. Possible values are "worker/default", "worker/database", "worker/gpu", "master". The "master" profile identifies the pool containing the cluster master // Example: worker/default // Required: true Profile *string `json:"profile"` }
NodePool node pool
swagger:model NodePool
func (*NodePool) ContextValidate ¶
ContextValidate validates this node pool based on context it is used
func (*NodePool) MarshalBinary ¶
MarshalBinary interface implementation
func (*NodePool) UnmarshalBinary ¶
UnmarshalBinary interface implementation