config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeHost

func NormalizeHost(host string) (string, error)

Types

type Config

type Config struct {
	Namespace string `yaml:"namespace"`
	Host      string `yaml:"host"`
}

type Context

type Context struct {
	Config
	AuthToken string
}

type Store

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

func New

func New() (*Store, error)

func (*Store) GetConfig

func (s *Store) GetConfig() (Config, error)

func (*Store) GetContext

func (s *Store) GetContext() (Context, error)

func (*Store) SetConfig

func (s *Store) SetConfig(conf Config) error

func (*Store) SetContext

func (s *Store) SetContext(host, authToken string, ttl time.Time) error

Jump to

Keyboard shortcuts

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