Documentation ¶
Index ¶
- Variables
- func ConfigCommand() cli.Command
- func CreateVMImage(c *harvclient.Clientset, namespace string, imageName string, url string) (*v1beta1.VirtualMachineImage, error)
- func GetClient(ctx *cli.Context) (*cliclient.MasterClient, error)
- func GetConfig(ctx *cli.Context) error
- func GetHarvesterClient(ctx *cli.Context) (*harvclient.Clientset, error)
- func GetKubeClient(ctx *cli.Context) (*kubeclient.Clientset, error)
- func GetResourceType(c *cliclient.MasterClient, resource string) (string, error)
- func ImageCommand() cli.Command
- func KeypairCommand() cli.Command
- func LoginCommand() cli.Command
- func Lookup(c *cliclient.MasterClient, name string, types ...string) (*ntypes.Resource, error)
- func NewTrue() *bool
- func RandomID() string
- func RandomLetters(n int) string
- func RandomName() string
- func ShellCommand() cli.Command
- func SimpleFormat(values [][]string) (string, string)
- func SplitOnColon(s string) []string
- func TemplateCommand() cli.Command
- func VMCommand() cli.Command
- type CACertResponse
- type Conf
- type ImageData
- type KeypairData
- type LoginData
- type MemberData
- type RoleTemplate
- type RoleTemplateBinding
- type TemplateData
- type VirtualMachineData
Constants ¶
This section is empty.
Variables ¶
var ( // ManagementResourceTypes lists the types we use the management client for ManagementResourceTypes = []string{"cluster", "node", "project"} // ProjectResourceTypes lists the types we use the cluster client for ProjectResourceTypes = []string{"secret", "namespacedSecret", "workload"} // ClusterResourceTypes lists the types we use the project client for ClusterResourceTypes = []string{"persistentVolume", "storageClass", "namespace"} )
Functions ¶
func ConfigCommand ¶
ConfigCommand defines a CLI command to set up the Harvester Configuration files
func CreateVMImage ¶
func CreateVMImage(c *harvclient.Clientset, namespace string, imageName string, url string) (*v1beta1.VirtualMachineImage, error)
CreateVMImage will create a VM Image on Harvester given an image name and an image URL
func GetHarvesterClient ¶
func GetHarvesterClient(ctx *cli.Context) (*harvclient.Clientset, error)
GetHarvesterClient creates a Client for Harvester from Config input
func GetKubeClient ¶ added in v0.0.2
func GetKubeClient(ctx *cli.Context) (*kubeclient.Clientset, error)
func GetResourceType ¶ added in v0.0.2
func GetResourceType(c *cliclient.MasterClient, resource string) (string, error)
GetResourceType maps an incoming resource type to a valid one from the schema
func ImageCommand ¶ added in v0.0.5
TemplateCommand defines the CLI command that lists VM templates in Harvester
func KeypairCommand ¶ added in v0.0.5
TemplateCommand defines the CLI command that lists VM templates in Harvester
func LoginCommand ¶ added in v0.0.2
func RandomID ¶
func RandomID() string
RandomID returns a random string used as an ID internally in Harvester.
func RandomLetters ¶ added in v0.0.2
RandomLetters returns a string with random letters of length n
func RandomName ¶ added in v0.0.2
func RandomName() string
func ShellCommand ¶
ShellCommand defines the CLI command that makes it possible to ssh into a VM
func SimpleFormat ¶ added in v0.0.2
func SplitOnColon ¶ added in v0.0.2
func TemplateCommand ¶ added in v0.0.5
TemplateCommand defines the CLI command that lists VM templates in Harvester
Types ¶
type CACertResponse ¶ added in v0.0.2
type Conf ¶
Conf is an Object that contains the configuration path and the configuration's file content as a string
type KeypairData ¶ added in v0.0.5
type LoginData ¶ added in v0.0.2
type LoginData struct { Project managementClient.Project Index int ClusterName string }
LoginData is a data structure to store login context information: project and ClusterName
type MemberData ¶ added in v0.0.2
type RoleTemplate ¶ added in v0.0.2
type RoleTemplateBinding ¶ added in v0.0.2
type TemplateData ¶ added in v0.0.5
type VirtualMachineData ¶
type VirtualMachineData struct { State string VirtualMachine VMv1.VirtualMachine Name string Node string CPU uint32 Memory string IPAddress string }
VirtualMachineData type is a Data Structure that holds information to display for VM