addon

package
v1.1.68 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChartStatusMap added in v1.1.60

func GetChartStatusMap() (map[string]string, error)

GetChartStatusMap return the map of chart name -> status

func IsAddonEnabled added in v1.1.35

func IsAddonEnabled(name string) bool

IsAddonEnabled returns true if the given addon is enabled

Types

type AddonConfig

type AddonConfig struct {
	Name    string
	Enabled bool
}

AddonConfig Addon Configration

type AddonsConfig

type AddonsConfig struct {
	Addons []*AddonConfig
}

AddonsConfig Addons Configuration

func LoadAddonsConfig

func LoadAddonsConfig() (*AddonsConfig, error)

LoadAddonsConfig loads the addons configuration from the `~/.jx/addon.yml` file if it exists

func (*AddonsConfig) GetOrCreate

func (c *AddonsConfig) GetOrCreate(name string) *AddonConfig

GetOrCreate returns the addon configuration for the given name or creates a new config object

func (*AddonsConfig) Save

func (c *AddonsConfig) Save() error

Save saves the addons configuration to the `~/.jx/addon.yml` file

Jump to

Keyboard shortcuts

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