auth

package
v0.18.14 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT struct {
	Token      string    `yaml:"value"`
	ValidUntil time.Time `yaml:"validUntil"`
}

func (*JWT) IsValid added in v0.13.0

func (t *JWT) IsValid() bool

type ProjectToken

type ProjectToken struct {
	Name              string `yaml:"name"`
	ClientId          string `yaml:"clientId"`
	ClientSecret      string `yaml:"clientSecret"`
	ValidUntil        string `yaml:"validUntil"`
	ApiServer         string `yaml:"apiServer"`
	ActiveEnvironment string `yaml:"activeEnvironment"`
	JWT               JWT    `yaml:"jwt,omitempty"`
}

func GetProjectAuthConfig

func GetProjectAuthConfig() (ProjectToken, error)

type ProjectTokens

type ProjectTokens struct {
	Tokens *map[string]*ProjectToken `yaml:"tokens,omitempty"`
}

type SourcedConfig

type SourcedConfig struct {
	Value  string
	Source string
}

func GetChalkClientArgConfig

func GetChalkClientArgConfig(value string) SourcedConfig

func GetChalkYamlConfig

func GetChalkYamlConfig(value string) SourcedConfig

func GetEnvVarConfig

func GetEnvVarConfig(key string) SourcedConfig

func GetFirstNonEmptyConfig

func GetFirstNonEmptyConfig(configs ...SourcedConfig) SourcedConfig

Jump to

Keyboard shortcuts

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