config

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL       string `json:"base_url"`
	AWSProfile    string `json:"aws_profile"`
	AssumeRoleARN string `json:"assume_role_arn"`
	// contains filtered or unexported fields
}

Config contains the configuration for this CLI. It is used to create a Client for the Pharos API server.

func New

func New(pharosConfig string) (*Config, error)

New creates a new Config reference at the given file path. Defaults to creating a Config reference at $HOME/.kube/pharos/config.

func (*Config) Load

func (c *Config) Load() error

Load loads data from the config file into the Config struct.

func (*Config) Save

func (c *Config) Save() error

Save saves data from the Config struct into the config file.

Jump to

Keyboard shortcuts

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