Documentation ¶
Index ¶
- Constants
- func ParseCategoryFromSKU(sku string) string
- func ParseMachine(machine *compute.MachineType) (*data.InstanceType, error)
- func ParseRegion(region *compute.Region) (*data.Region, error)
- func ParseZoneFromUrl(url string) (string, error)
- type Client
- func (g *Client) GetCredentials() []data.CredentialFormat
- func (g *Client) GetEnvs() []string
- func (g *Client) GetInstanceTypes() ([]data.InstanceType, error)
- func (g *Client) GetKubernets() []data.Kubernetes
- func (g *Client) GetName() string
- func (g *Client) GetRegions() ([]data.Region, error)
- func (g *Client) GetZones() ([]string, error)
- type GceData
Constants ¶
View Source
const (
CategoryUnknown string = "unknown"
)
Variables ¶
This section is empty.
Functions ¶
func ParseCategoryFromSKU ¶
gce SKU format: [something]-category-somethin/empty
func ParseMachine ¶
func ParseMachine(machine *compute.MachineType) (*data.InstanceType, error)
func ParseRegion ¶
func ParseZoneFromUrl ¶
Types ¶
type Client ¶
type Client struct { Data *GceData GceProjectID string ComputeService *compute.Service Ctx context.Context }
func (*Client) GetCredentials ¶
func (g *Client) GetCredentials() []data.CredentialFormat
func (*Client) GetInstanceTypes ¶
func (g *Client) GetInstanceTypes() ([]data.InstanceType, error)
func (*Client) GetKubernets ¶
func (g *Client) GetKubernets() []data.Kubernetes
Click to show internal directories.
Click to hide internal directories.