jx: github.com/jenkins-x/jx/pkg/addon Index | Files

package addon

import "github.com/jenkins-x/jx/pkg/addon"

Index

Package Files

config.go constants.go helpers.go

Constants

const (
    Anchore = "anchore"
)

func IsAddonEnabled Uses

func IsAddonEnabled(name string) bool

IsAddonEnabled returns true if the given addon is enabled

func ProviderAccessTokenURL Uses

func ProviderAccessTokenURL(kind string, url string) string

type AddonConfig Uses

type AddonConfig struct {
    Name    string
    Enabled bool
}

AddonConfig Addon Configuration

type AddonsConfig Uses

type AddonsConfig struct {
    Addons []*AddonConfig
}

AddonsConfig Addons Configuration

func LoadAddonsConfig Uses

func LoadAddonsConfig() (*AddonsConfig, error)

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

func (*AddonsConfig) GetOrCreate Uses

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 Uses

func (c *AddonsConfig) Save() error

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

Package addon imports 5 packages (graph) and is imported by 4 packages. Updated 2019-04-17. Refresh now. Tools for package owners.