config

package
v0.0.0-...-07420df Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFile string

Functions

This section is empty.

Types

type Config

type Config struct {
	// The Falcon Customer ID
	CID string `yaml:"cid,omitempty"`
	// The Falcon API client ID.
	ClientID string `yaml:"client_id"`
	// The Falcon API client secret.
	ClientSecret string `yaml:"client_secret"`
	// The Falcon API base URL.
	MemberCID string `yaml:"member_cid,omitempty"`
	// The Falcon API cloud region.
	Cloud string `yaml:"cloud,omitempty"`
	// The OAuth token returned from the Falcon API.
	OauthToken string `yaml:"oauth_token,omitempty"`
	// The Container Registry OAuth token returned from the Falcon API.
	RegistryToken string `yaml:"registry_token,omitempty"`
	// The Profile to use for the CLI
	Profile string `yaml:"profile,omitempty"`
}

Struct to hold persistent configuration for falcon

func NewConfig

func NewConfig() (Config, error)

func (Config) ApiConfig

func (c Config) ApiConfig(appVersion string) *falcon.ApiConfig

Jump to

Keyboard shortcuts

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