addon

package
v1.3.185 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Anchore = "anchore"
)

Variables

This section is empty.

Functions

func IsAddonEnabled added in v1.1.35

func IsAddonEnabled(name string) bool

IsAddonEnabled returns true if the given addon is enabled

func ProviderAccessTokenURL added in v1.1.69

func ProviderAccessTokenURL(kind string, url string) string

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