models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 Cluster

type Cluster struct {

	// name of the cluster
	// Required: true
	// Pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
	Name *string `json:"name"`

	// spec
	Spec ClusterSpec `json:"spec,omitempty"`

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

func (*Cluster) GetFormats

func (c *Cluster) GetFormats() map[printers.PrintFormat]struct{}

func (*Cluster) MarshalBinary

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

MarshalBinary interface implementation

func (*Cluster) Print

func (c *Cluster) Print(format printers.PrintFormat, options printers.PrintOptions) error

func (*Cluster) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Cluster) Validate

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

Validate validates this cluster

type ClusterInfo

type ClusterInfo struct {

	// binaries
	Binaries []*ClusterInfoBinariesItems0 `json:"binaries"`

	// setup command
	SetupCommand string `json:"setupCommand,omitempty"`
}

func (*ClusterInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterInfo) Validate

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

Validate validates this cluster info

type ClusterInfoBinariesItems0

type ClusterInfoBinariesItems0 struct {

	// links
	Links []*ClusterInfoBinariesItems0LinksItems0 `json:"links"`

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

func (*ClusterInfoBinariesItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterInfoBinariesItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterInfoBinariesItems0) Validate

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

Validate validates this cluster info binaries items0

type ClusterInfoBinariesItems0LinksItems0

type ClusterInfoBinariesItems0LinksItems0 struct {

	// link
	Link string `json:"link,omitempty"`

	// platform
	Platform string `json:"platform,omitempty"`
}

func (*ClusterInfoBinariesItems0LinksItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterInfoBinariesItems0LinksItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterInfoBinariesItems0LinksItems0) Validate

Validate validates this cluster info binaries items0 links items0

type ClusterSpec

type ClusterSpec struct {

	// 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"`

	// node pools
	NodePools []*ClusterSpecNodePoolsItems0 `json:"nodePools"`

	// 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 (*ClusterSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterSpec) Validate

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

Validate validates this cluster spec

type ClusterSpecNodePoolsItems0

type ClusterSpecNodePoolsItems0 struct {

	// 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
	// Required: true
	// Maximum: 127
	// Minimum: 0
	Size *int64 `json:"size"`
}

func (*ClusterSpecNodePoolsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterSpecNodePoolsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterSpecNodePoolsItems0) Validate

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

Validate validates this cluster spec node pools items0

type ClusterStatus

type ClusterStatus struct {

	// kluster
	Kluster *ClusterStatusKluster `json:"kluster,omitempty"`

	// node pools
	NodePools []*ClusterStatusNodePoolsItems0 `json:"nodePools"`
}

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

func (*ClusterStatus) Validate

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

Validate validates this cluster status

type ClusterStatusKluster

type ClusterStatusKluster struct {

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

	// status of the cluster
	State string `json:"state,omitempty"`
}

func (*ClusterStatusKluster) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterStatusKluster) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterStatusKluster) Validate

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

Validate validates this cluster status kluster

type ClusterStatusNodePoolsItems0

type ClusterStatusNodePoolsItems0 struct {

	// healthy
	// Required: true
	Healthy *int64 `json:"healthy"`

	// name
	// Required: true
	Name *string `json:"name"`

	// running
	// Required: true
	Running *int64 `json:"running"`

	// schedulable
	// Required: true
	Schedulable *int64 `json:"schedulable"`

	// size
	// Required: true
	Size *int64 `json:"size"`
}

func (*ClusterStatusNodePoolsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ClusterStatusNodePoolsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClusterStatusNodePoolsItems0) Validate

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

Validate validates this cluster status node pools items0

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

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type Info

type Info struct {

	// version
	Version string `json:"version,omitempty"`
}

func (*Info) MarshalBinary

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

MarshalBinary interface implementation

func (*Info) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Info) Validate

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

Validate validates this info

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

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

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Principal) Validate

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

Validate validates this principal

Source Files

  • api_versions.go
  • cluster.go
  • cluster_info.go
  • cluster_print.go
  • credentials.go
  • error.go
  • info.go
  • principal.go

Jump to

Keyboard shortcuts

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