credentials

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServerCredentials added in v0.13.2

type AuthServerCredentials struct {
	AccessToken  string `yaml:"accessToken,omitempty"`
	RefreshToken string `yaml:"refreshToken,omitempty"`
}

type Credentials

type Credentials struct {
	Repos       map[string]*RepoCredentials       `yaml:"repos,omitempty"`
	AuthServers map[string]*AuthServerCredentials `yaml:"authServers,omitempty"`
}

type RepoCredentials added in v0.13.2

type RepoCredentials struct {
	RelyingPartyToken string `yaml:"relyingPartyToken,omitempty"`
}

type Store

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

func NewStore

func NewStore() (*Store, error)

func (*Store) DeleteAuthServer added in v0.13.2

func (s *Store) DeleteAuthServer(asURI url.URL) bool

func (*Store) DeleteRepo added in v0.13.2

func (s *Store) DeleteRepo(repoURI url.URL) bool

func (*Store) Flush

func (s *Store) Flush() error

func (*Store) GetAccessToken added in v0.13.2

func (s *Store) GetAccessToken(asURI url.URL) string

func (*Store) GetRPT added in v0.13.2

func (s *Store) GetRPT(repoURI url.URL) string

func (*Store) GetRefreshToken added in v0.13.2

func (s *Store) GetRefreshToken(asURI url.URL) string

func (*Store) Path

func (s *Store) Path() string

func (*Store) RepoURIs added in v0.13.2

func (s *Store) RepoURIs() ([]url.URL, error)

func (*Store) SetAccessToken added in v0.13.2

func (s *Store) SetAccessToken(asURI url.URL, accessToken, refreshToken string)

func (*Store) SetRPT added in v0.13.2

func (s *Store) SetRPT(repoURI url.URL, rpt string)

Jump to

Keyboard shortcuts

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