secret

package
v0.0.0-...-b5a03d5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/* #nosec */
	// KeyGithubAPIToken describe a key string
	KeyGithubAPIToken = "github-api-token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store describe a store to manage secret values.

func NewStore

func NewStore(wf *aw.Workflow) *Store

NewStore return an instance of Store

func (*Store) Delete

func (s *Store) Delete(key string) error

Delete removes the value from the secret store.

func (*Store) Get

func (s *Store) Get(key string) (string, error)

Get fetch the value from the secret store.

func (*Store) GetAPIToken

func (s *Store) GetAPIToken() (string, error)

GetAPIToken fetch the token string from this store.

func (*Store) Store

func (s *Store) Store(key string, secret string) error

Store save the secret

Jump to

Keyboard shortcuts

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