configs

package
v0.133.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 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

This section is empty.

Variables

This section is empty.

Functions

func CreateNewConfig

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

func (c *C) Save() error

Save saves the config.

func (*C) Validate

func (c *C) Validate() error

Validate validates the config.

type Context

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