secrets

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const JobsSecretsKeySuffix = "-secret"

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleSubmission() http.HandlerFunc
}

func NewHandler

func NewHandler(secretsStore Store) Handler

type MockStore

type MockStore struct {
	mock.Mock
}

func (*MockStore) CreateOrUpdateJobSecret

func (m *MockStore) CreateOrUpdateJobSecret(secret Secret) error

func (*MockStore) GetJobSecrets

func (m *MockStore) GetJobSecrets(jobName string) (map[string]string, error)

type Secret

type Secret struct {
	JobName string            `json:"job_name"`
	Secrets map[string]string `json:"secrets"`
}

type Store

type Store interface {
	CreateOrUpdateJobSecret(Secret) error
	GetJobSecrets(string) (map[string]string, error)
}

func NewStore

func NewStore(redisClient redis.Client) Store

Jump to

Keyboard shortcuts

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