Documentation ¶
Index ¶
- Constants
- func Bootstrap(env evergreen.Environment) error
- func DeleteCredentials(ctx context.Context, env evergreen.Environment, name string) error
- func FindByID(ctx context.Context, env evergreen.Environment, name string) (*rpc.Credentials, error)
- func GenerateInMemory(ctx context.Context, env evergreen.Environment, name string) (*rpc.Credentials, error)
- func SaveCredentials(ctx context.Context, env evergreen.Environment, name string, ...) error
Constants ¶
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 ¶
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.