profile

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveProfile

func GetActiveProfile() string

Get Active Profile from AllInstancesConfig

func GetProfileList

func GetProfileList() []string

Returns the list of profile names

func SetActiveProfile

func SetActiveProfile(name string) error

Set Active Profile and also it makes sure that we have one active profile at one point of time.

func SetDefaultProfileActive

func SetDefaultProfileActive() error

func UpdateProfileConstants

func UpdateProfileConstants(profileName string)

Placeholder function to change variables related to a VM instance This needs a better solution than this as these variables should not be changed outside of cmd/root.go. However cluster.GetHostStatus(api) uses constants.MachineName inside the function. This is a temporary fix and we will findout a better way to do it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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