credentials

package
v0.0.0-...-366f0b0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Collection = "credentials"
	CAName     = "evergreen"
)

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(env evergreen.Environment) error

Bootstrap performs one-time initialization of the credentials collection with the certificate authority and service certificate. In order to perform operations on this collection, collection, this must succeed.

func DeleteCredentials

func DeleteCredentials(ctx context.Context, env evergreen.Environment, name string) error

DeleteCredentials removes the credentials from the database.

func FindByID

func FindByID(ctx context.Context, env evergreen.Environment, name string) (*rpc.Credentials, error)

FindByID gets the credentials for the given name.

func GenerateInMemory

func GenerateInMemory(ctx context.Context, env evergreen.Environment, name string) (*rpc.Credentials, error)

GenerateInMemory generates the credentials without storing them in the database. This is not idempotent, so separate calls with the same inputs will return different credentials.

func SaveCredentials

func SaveCredentials(ctx context.Context, env evergreen.Environment, name string, creds *rpc.Credentials) error

SaveCredentials saves the credentials from the options for the given user name. If the credentials already exist, this will overwrite the existing credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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