Documentation
¶
Index ¶
- Constants
- type APIVersions
- type Binaries
- type Credentials
- type Error
- type Event
- type Flavor
- type Info
- type KeyPair
- type Kluster
- func (k Kluster) GetFormats() map[printers.PrintFormat]struct{}
- func (m *Kluster) MarshalBinary() ([]byte, error)
- func (k Kluster) Print(format printers.PrintFormat, options printers.PrintOptions) error
- func (m *Kluster) UnmarshalBinary(b []byte) error
- func (m *Kluster) Validate(formats strfmt.Registry) error
- type KlusterInfo
- type KlusterPhase
- type KlusterSpec
- type KlusterStatus
- type Link
- type Network
- type NodePool
- func (p NodePool) GetFormats() map[printers.PrintFormat]struct{}
- func (m *NodePool) MarshalBinary() ([]byte, error)
- func (p NodePool) Print(format printers.PrintFormat, options printers.PrintOptions) error
- func (m *NodePool) UnmarshalBinary(b []byte) error
- func (m *NodePool) Validate(formats strfmt.Registry) error
- type NodePoolConfig
- type NodePoolInfo
- type OpenstackMetadata
- type OpenstackSpec
- type Principal
- type Router
- type SecurityGroup
- type Subnet
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIVersions ¶
type APIVersions struct {
// versions are the api versions that are available.
// Required: true
Versions []string `json:"versions"`
}
func (*APIVersions) MarshalBinary ¶
func (m *APIVersions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIVersions) UnmarshalBinary ¶
func (m *APIVersions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*APIVersions) Validate ¶
func (m *APIVersions) Validate(formats strfmt.Registry) error
Validate validates this Api versions
type Binaries ¶ added in v1.2.0
type Binaries struct {
// links
Links []Link `json:"links"`
// name
Name string `json:"name,omitempty"`
}
func (*Binaries) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*Binaries) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type Credentials ¶
type Credentials struct {
// kubeconfig
Kubeconfig string `json:"kubeconfig,omitempty"`
}
func (*Credentials) MarshalBinary ¶
func (m *Credentials) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Credentials) UnmarshalBinary ¶
func (m *Credentials) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*Credentials) Validate ¶
func (m *Credentials) Validate(formats strfmt.Registry) error
Validate validates this credentials
type Error ¶
type Error struct {
// The error code
// Required: true
Code *int64 `json:"code"`
// link to help page explaining the error in more detail
HelpURL strfmt.URI `json:"helpUrl,omitempty"`
// The error message
// Required: true
Message *string `json:"message"`
}
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Event ¶ added in v1.2.0
type Event struct {
// The number of times this event has occurred.
Count int64 `json:"count"`
// The time at which the event was first recorded
FirstTimestamp strfmt.DateTime `json:"firstTimestamp,omitempty"`
// The time at which the most recent occurrence of this event was recorded
LastTimestamp strfmt.DateTime `json:"lastTimestamp,omitempty"`
// A human-readable description of the event
Message string `json:"message,omitempty"`
// A short, machine understandable string that gives the reason for the event
Reason string `json:"reason,omitempty"`
// Type of this event
Type string `json:"type,omitempty"`
}
func (*Event) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*Event) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type Flavor ¶ added in v1.2.0
type Flavor struct {
// id
ID string `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
}
func (*Flavor) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*Flavor) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type Info ¶
type Info struct {
// version
Version string `json:"version,omitempty"`
}
func (*Info) MarshalBinary ¶
MarshalBinary interface implementation
func (*Info) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type KeyPair ¶ added in v1.2.0
type KeyPair struct {
// name
Name string `json:"name,omitempty"`
}
func (*KeyPair) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*KeyPair) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type Kluster ¶ added in v1.2.0
type Kluster struct {
// name of the cluster
// Required: true
// Pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
Name string `json:"name"`
// spec
Spec KlusterSpec `json:"spec,omitempty"`
// status
Status KlusterStatus `json:"status,omitempty"`
}
func (Kluster) GetFormats ¶ added in v1.2.0
func (k Kluster) GetFormats() map[printers.PrintFormat]struct{}
func (*Kluster) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (Kluster) Print ¶ added in v1.2.0
func (k Kluster) Print(format printers.PrintFormat, options printers.PrintOptions) error
func (*Kluster) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type KlusterInfo ¶ added in v1.2.0
type KlusterInfo struct {
// binaries
Binaries []Binaries `json:"binaries"`
// setup command
SetupCommand string `json:"setupCommand,omitempty"`
}
func (*KlusterInfo) MarshalBinary ¶ added in v1.2.0
func (m *KlusterInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KlusterInfo) UnmarshalBinary ¶ added in v1.2.0
func (m *KlusterInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*KlusterInfo) Validate ¶ added in v1.2.0
func (m *KlusterInfo) Validate(formats strfmt.Registry) error
Validate validates this kluster info
type KlusterPhase ¶ added in v1.2.0
type KlusterPhase string
const ( // KlusterPhasePending captures enum value "Pending" KlusterPhasePending KlusterPhase = "Pending" // KlusterPhaseCreating captures enum value "Creating" KlusterPhaseCreating KlusterPhase = "Creating" // KlusterPhaseRunning captures enum value "Running" KlusterPhaseRunning KlusterPhase = "Running" // KlusterPhaseTerminating captures enum value "Terminating" KlusterPhaseTerminating KlusterPhase = "Terminating" )
func (KlusterPhase) Validate ¶ added in v1.2.0
func (m KlusterPhase) Validate(formats strfmt.Registry) error
Validate validates this kluster phase
type KlusterSpec ¶ added in v1.2.0
type KlusterSpec struct {
// advertise address
AdvertiseAddress string `json:"advertiseAddress,omitempty"`
// CIDR Range for Pods in the cluster. Can not be updated.
// Pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ClusterCIDR string `json:"clusterCIDR,omitempty"`
// dns address
DNSAddress string `json:"dnsAddress,omitempty"`
// dns domain
DNSDomain string `json:"dnsDomain,omitempty"`
// name
// Read Only: true
Name string `json:"name,omitempty"`
// node pools
NodePools []NodePool `json:"nodePools"`
// openstack
Openstack OpenstackSpec `json:"openstack,omitempty"`
// CIDR Range for Services in the cluster. Can not be updated.
// Pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ServiceCIDR string `json:"serviceCIDR,omitempty"`
}
func (*KlusterSpec) MarshalBinary ¶ added in v1.2.0
func (m *KlusterSpec) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KlusterSpec) UnmarshalBinary ¶ added in v1.2.0
func (m *KlusterSpec) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*KlusterSpec) Validate ¶ added in v1.2.0
func (m *KlusterSpec) Validate(formats strfmt.Registry) error
Validate validates this kluster spec
type KlusterStatus ¶ added in v1.2.0
type KlusterStatus struct {
// apiserver
Apiserver string `json:"apiserver,omitempty"`
// message
Message string `json:"message,omitempty"`
// node pools
NodePools []NodePoolInfo `json:"nodePools"`
// phase
Phase KlusterPhase `json:"phase,omitempty"`
// version
Version string `json:"version,omitempty"`
// wormhole
Wormhole string `json:"wormhole,omitempty"`
}
func (*KlusterStatus) MarshalBinary ¶ added in v1.2.0
func (m *KlusterStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KlusterStatus) UnmarshalBinary ¶ added in v1.2.0
func (m *KlusterStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*KlusterStatus) Validate ¶ added in v1.2.0
func (m *KlusterStatus) Validate(formats strfmt.Registry) error
Validate validates this kluster status
type Link ¶ added in v1.2.0
type Link struct {
// link
Link string `json:"link,omitempty"`
// platform
Platform string `json:"platform,omitempty"`
}
func (*Link) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*Link) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type Network ¶ added in v1.2.0
type Network struct {
// id
ID string `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// subnets
Subnets []*Subnet `json:"subnets"`
}
func (*Network) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*Network) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type NodePool ¶ added in v1.2.0
type NodePool struct {
// config
Config NodePoolConfig `json:"config,omitempty"`
// flavor
// Required: true
Flavor string `json:"flavor"`
// image
Image string `json:"image,omitempty"`
// name
// Required: true
// Pattern: ^[a-z]([a-z0-9]*)?$
Name string `json:"name"`
// size
// Maximum: 127
// Minimum: 0
Size int64 `json:"size"`
}
func (NodePool) GetFormats ¶ added in v1.2.0
func (p NodePool) GetFormats() map[printers.PrintFormat]struct{}
func (*NodePool) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (NodePool) Print ¶ added in v1.2.0
func (p NodePool) Print(format printers.PrintFormat, options printers.PrintOptions) error
func (*NodePool) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type NodePoolConfig ¶ added in v1.2.0
type NodePoolConfig struct {
// repair
Repair bool `json:"repair,omitempty"`
// upgrade
Upgrade bool `json:"upgrade,omitempty"`
}
func (*NodePoolConfig) MarshalBinary ¶ added in v1.2.0
func (m *NodePoolConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodePoolConfig) UnmarshalBinary ¶ added in v1.2.0
func (m *NodePoolConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*NodePoolConfig) Validate ¶ added in v1.2.0
func (m *NodePoolConfig) Validate(formats strfmt.Registry) error
Validate validates this node pool config
type NodePoolInfo ¶ added in v1.2.0
type NodePoolInfo struct {
// healthy
Healthy int64 `json:"healthy"`
// name
Name string `json:"name,omitempty"`
// running
Running int64 `json:"running"`
// schedulable
Schedulable int64 `json:"schedulable"`
// size
Size int64 `json:"size"`
}
func (*NodePoolInfo) MarshalBinary ¶ added in v1.2.0
func (m *NodePoolInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodePoolInfo) UnmarshalBinary ¶ added in v1.2.0
func (m *NodePoolInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*NodePoolInfo) Validate ¶ added in v1.2.0
func (m *NodePoolInfo) Validate(formats strfmt.Registry) error
Validate validates this node pool info
type OpenstackMetadata ¶ added in v1.2.0
type OpenstackMetadata struct {
// flavors
Flavors []*Flavor `json:"flavors"`
// key pairs
KeyPairs []*KeyPair `json:"keyPairs"`
// routers
Routers []*Router `json:"routers"`
// security groups
SecurityGroups []*SecurityGroup `json:"securityGroups"`
}
func (*OpenstackMetadata) MarshalBinary ¶ added in v1.2.0
func (m *OpenstackMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OpenstackMetadata) UnmarshalBinary ¶ added in v1.2.0
func (m *OpenstackMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OpenstackMetadata) Validate ¶ added in v1.2.0
func (m *OpenstackMetadata) Validate(formats strfmt.Registry) error
Validate validates this openstack metadata
type OpenstackSpec ¶ added in v1.2.0
type OpenstackSpec struct {
// l b subnet ID
LBSubnetID string `json:"lbSubnetID,omitempty"`
// network ID
NetworkID string `json:"networkID,omitempty"`
// project ID
ProjectID string `json:"projectID,omitempty"`
// router ID
RouterID string `json:"routerID,omitempty"`
}
func (*OpenstackSpec) MarshalBinary ¶ added in v1.2.0
func (m *OpenstackSpec) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OpenstackSpec) UnmarshalBinary ¶ added in v1.2.0
func (m *OpenstackSpec) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OpenstackSpec) Validate ¶ added in v1.2.0
func (m *OpenstackSpec) Validate(formats strfmt.Registry) error
Validate validates this openstack spec
type Principal ¶
type Principal struct {
// account id
Account string `json:"account,omitempty"`
// Identity Endpoint
AuthURL string `json:"authUrl,omitempty"`
// user's domain name
Domain string `json:"domain,omitempty"`
// userid
ID string `json:"id,omitempty"`
// username
Name string `json:"name,omitempty"`
// list of roles the user has in the given scope
Roles []string `json:"roles"`
}
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Router ¶ added in v1.2.0
type Router struct {
// id
ID string `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// networks
Networks []*Network `json:"networks"`
}
func (*Router) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*Router) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
type SecurityGroup ¶ added in v1.2.0
type SecurityGroup struct {
// id
ID string `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
}
func (*SecurityGroup) MarshalBinary ¶ added in v1.2.0
func (m *SecurityGroup) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityGroup) UnmarshalBinary ¶ added in v1.2.0
func (m *SecurityGroup) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SecurityGroup) Validate ¶ added in v1.2.0
func (m *SecurityGroup) Validate(formats strfmt.Registry) error
Validate validates this security group
type Subnet ¶ added in v1.2.0
type Subnet struct {
// c ID r
CIDR string `json:"CIDR,omitempty"`
// id
ID string `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
}
func (*Subnet) MarshalBinary ¶ added in v1.2.0
MarshalBinary interface implementation
func (*Subnet) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary interface implementation
Source Files
¶
- api_versions.go
- credentials.go
- error.go
- event.go
- info.go
- kluster.go
- kluster_info.go
- kluster_phase.go
- kluster_print.go
- kluster_spec.go
- kluster_status.go
- node_pool.go
- node_pool_config.go
- node_pool_info.go
- openstack_metadata.go
- openstack_spec.go
- principal.go