configs

package
v0.89.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewConfig added in v0.46.0

func CreateNewConfig() error

CreateNewConfig creates a new config file.

Types

type Auth

type Auth struct {
	ClientID     string `yaml:"clientId"`
	ClientSecret string `yaml:"clientSecret"`
	RedirectURI  string `yaml:"redirectUri"`
	IssuerURL    string `yaml:"issuerUrl"`
}

Auth is an authentication configuration.

type C

type C struct {
	Version string `yaml:"version"`

	EndpointURL string `yaml:"endpointUrl"`

	Auth Auth `yaml:"auth"`

	Context Context `yaml:"context"`
}

C is a config file.

func LoadOrCreate

func LoadOrCreate() (*C, error)

LoadOrCreate loads the config.

func (*C) Save added in v0.46.0

func (c *C) Save() error

Save saves the config.

func (*C) Validate

func (c *C) Validate() error

Validate validates the config.

type Context added in v0.43.0

type Context struct {
	OrganizationID string `yaml:"organizationId"`
	ProjectID      string `yaml:"projectId"`
}

Context is a context configuration.

Jump to

Keyboard shortcuts

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