Documentation ¶
Overview ¶
Package types contains the types for the storctl tool. It includes the types for the server, volume, lab, and SSH key.
Index ¶
- func NewError(code, message string) error
- type AnsibleSpec
- type IPv4
- type Lab
- type LabDeleteStatus
- type LabServerSpec
- type LabSpec
- type LabStatus
- type LabVolumeSpec
- type ObjectMeta
- type ProviderError
- type PublicNet
- type Resource
- type SSHKey
- type SSHKeyDeleteStatus
- type SSHKeyExistsStatus
- type SSHKeySpec
- type SSHKeyStatus
- type Server
- type ServerDeleteStatus
- type ServerSpec
- type ServerStatus
- type TypeMeta
- type Volume
- type VolumeDeleteStatus
- type VolumeSpec
- type VolumeStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnsibleSpec ¶ added in v0.1.2
type Lab ¶
type Lab struct { TypeMeta `json:",inline"` ObjectMeta `json:"metadata,omitempty"` Spec LabSpec `json:"spec"` Status LabStatus `json:"status,omitempty"` }
type LabDeleteStatus ¶
type LabServerSpec ¶
type LabSpec ¶
type LabSpec struct { Servers []*LabServerSpec `json:"servers"` Volumes []*LabVolumeSpec `json:"volumes"` TTL string `json:"ttl"` Provider string `json:"provider"` Location string `json:"location"` Ansible AnsibleSpec `json:"ansible"` CertManager bool `json:"certManager"` LetsEncrypt string `json:"letsEncrypt"` // prod or staging }
type LabVolumeSpec ¶
type ObjectMeta ¶
type ProviderError ¶ added in v0.1.2
ProviderError represents an error from a cloud provider
func (*ProviderError) Error ¶ added in v0.1.2
func (e *ProviderError) Error() string
type Resource ¶
type Resource struct { TypeMeta `json:",inline"` ObjectMeta `json:"metadata,omitempty"` Spec map[string]interface{} `json:"spec"` }
Resource represents the common fields for all resources
type SSHKey ¶
type SSHKey struct { TypeMeta `json:",inline"` ObjectMeta `json:"metadata,omitempty"` Spec SSHKeySpec `json:"spec"` Status SSHKeyStatus `json:"status,omitempty"` }
type SSHKeyDeleteStatus ¶
type SSHKeyExistsStatus ¶ added in v0.1.2
type SSHKeySpec ¶
type SSHKeyStatus ¶
type Server ¶
type Server struct { TypeMeta `json:",inline"` ObjectMeta `json:"metadata,omitempty"` Spec ServerSpec `json:"spec"` Status ServerStatus `json:"status,omitempty"` }
type ServerDeleteStatus ¶
type ServerSpec ¶
type ServerSpec struct { ServerType string `json:"type"` Image string `json:"image"` Location string `json:"location"` Provider string `json:"provider"` Labels map[string]string `json:"labels"` Volumes []*Volume `json:"volumes"` SSHKeyNames []string `json:"sshKeyNames"` TTL string `json:"ttl"` }
Server represents a generic server across providers
type ServerStatus ¶
type Volume ¶
type Volume struct { TypeMeta `json:",inline"` ObjectMeta `json:"metadata,omitempty"` Spec VolumeSpec `json:"spec"` Status VolumeStatus `json:"status,omitempty"` }
type VolumeDeleteStatus ¶
type VolumeSpec ¶
type VolumeSpec struct { ServerID string `json:"serverID"` ServerName string `json:"serverName"` Location string `json:"location"` Provider string `json:"provider"` Size int `json:"size"` Automount bool `json:"automount"` Format string `json:"format"` Labels map[string]string `json:"labels"` TTL string `json:"ttl"` }
Click to show internal directories.
Click to hide internal directories.