cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CONFIG_FILE = ".oci/oci-api-keygen.json"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ApiKey

type ApiKey struct {
	Tenancy     string `json:"tenancy"`
	Fingerprint string `json:"fingerprint"`
}

type Config

type Config struct {
	KeyPath string   `json:"keyPath"`
	ApiKeys []ApiKey `json:"apiKeys"`
}

func (*Config) GetTenancy

func (c *Config) GetTenancy(tenancy string) (ApiKey, error)

func (*Config) SaveConfig

func (c *Config) SaveConfig()

Jump to

Keyboard shortcuts

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