addedeffect: go.aporeto.io/addedeffect/appcreds Index | Files

package appcreds

import "go.aporeto.io/addedeffect/appcreds"

Package appcreds contains utilities to generate and interact with Aporeto AppCredentials.

Index

Package Files

appcreds.go doc.go

func Create Uses

func Create(ctx context.Context, m manipulate.Manipulator, namespace string, ac *gaia.AppCredential) error

Create generates a new CSR for the provided app credential and calls the upstream service using the supplied manipulator to provision the app credential. The returned credential will have the private key used to generate the CSR added back as an attribute. An error and a nil app cred reference is returned if CSR generation or the API call to the upstream service failed.

func New Uses

func New(ctx context.Context, m manipulate.Manipulator, namespace string, name string, roles []string, subnets []string) (*gaia.AppCredential, error)

New creates a new *gaia.AppCredential.

func NewWithAppCredential Uses

func NewWithAppCredential(ctx context.Context, m manipulate.Manipulator, template *gaia.AppCredential) (*gaia.AppCredential, error)

NewWithAppCredential creates a new *gaia.AppCredential from an *AppCredential Deprecated: use Create instead

func Renew Uses

func Renew(ctx context.Context, m manipulate.Manipulator, creds *gaia.AppCredential) (*gaia.AppCredential, error)

Renew renews the given appcred.

Package appcreds imports 7 packages (graph). Updated 2019-09-21. Refresh now. Tools for package owners.