Documentation ¶
Index ¶
- Variables
- type Config
- type Environ
- type Manager
- func (manager *Manager) GetProfile() (*Profile, error)
- func (manager *Manager) HasProfileName() bool
- func (manager *Manager) Load() error
- func (manager *Manager) MakeAbsolute(path *string) error
- func (manager *Manager) SetProfileName(profileName string)
- func (manager *Manager) UpdateFlagSet(command *cobra.Command, flags *pflag.FlagSet)
- func (manager *Manager) Validate() error
- type NamedProfiles
- type PortForward
- type PortForwardList
- type Profile
- type Resource
- type ResourceList
- type ShellCompletion
- type SyncPath
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MainManager = NewManager() ErrUnknownProfile = errors.New("profile not found") ErrConfigLoad = errors.New("unable to load config") ErrInvalidValue = errors.New("invalid value") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Profiles NamedProfiles `json:"profiles" yaml:"profiles"`
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) GetProfile ¶
func (*Manager) HasProfileName ¶
func (*Manager) MakeAbsolute ¶
func (*Manager) SetProfileName ¶
func (*Manager) UpdateFlagSet ¶
type NamedProfiles ¶
type PortForward ¶
type PortForward string
type PortForwardList ¶
type PortForwardList []PortForward
type Profile ¶
type Profile struct { Name string `yaml:"-"` Command []string `yaml:"command,omitempty"` SyncPaths []SyncPath `yaml:"syncPaths,omitempty"` PortForwards PortForwardList `yaml:"portForwards,omitempty"` Environ Environ `yaml:"environment,omitempty"` Resources ResourceList `yaml:"resources,omitempty"` }
type ResourceList ¶
type ShellCompletion ¶
Click to show internal directories.
Click to hide internal directories.