config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Filename = ".ldcli-config.yml"

Variables

This section is empty.

Functions

func GetConfigFile

func GetConfigFile() string

GetConfigFile gets the full path to the config file.

Types

type ConfigFile

type ConfigFile struct {
	AccessToken     string `json:"access-token,omitempty" yaml:"access-token,omitempty"`
	AnalyticsOptOut *bool  `json:"analytics-opt-out,omitempty" yaml:"analytics-opt-out,omitempty"`
	BaseURI         string `json:"base-uri,omitempty" yaml:"base-uri,omitempty"`
	Flag            string `json:"flag,omitempty" yaml:"flag,omitempty"`
	Environment     string `json:"environment,omitempty" yaml:"environment,omitempty"`
	Output          string `json:"output,omitempty" yaml:"output,omitempty"`
	Project         string `json:"project,omitempty" yaml:"project,omitempty"`
}

ConfigFile represents the data stored in the config file.

func NewConfig

func NewConfig(rawConfig map[string]interface{}) (ConfigFile, error)

type Service added in v1.1.0

type Service struct {
	// contains filtered or unexported fields
}

func NewService added in v1.1.0

func NewService(client resources.Client) Service

func (Service) VerifyAccessToken added in v1.1.0

func (s Service) VerifyAccessToken(accessToken string, baseURI string) bool

VerifyAccessToken is true if the given access token is valid to make API requests.

Jump to

Keyboard shortcuts

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