bless

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Aws *cziAWS.Client
	// contains filtered or unexported fields
}

Client is a bless client

func New

func New(conf *config.Config) *Client

New returns a new client

func (*Client) RequestCert

func (c *Client) RequestCert(ctx context.Context) error

RequestCert requests a cert

func (*Client) RequestKMSAuthToken

func (c *Client) RequestKMSAuthToken(ctx context.Context) (*kmsauth.EncryptedToken, error)

RequestKMSAuthToken requests a new kmsauth token

func (*Client) WithAwsClient

func (c *Client) WithAwsClient(client *cziAWS.Client) *Client

WithAwsClient configures an aws client

func (*Client) WithTokenGenerator

func (c *Client) WithTokenGenerator(tg *kmsauth.TokenGenerator) *Client

WithTokenGenerator configures a token generator

func (*Client) WithUsername

func (c *Client) WithUsername(username string) *Client

WithUsername configures the username

type LambdaPayload

type LambdaPayload struct {
	RemoteUsernames string `json:"remote_usernames,omitempty"`
	BastionIPs      string `json:"bastion_ips,omitempty"`
	BastionUser     string `json:"bastion_user,omitempty"`
	BastionUserIP   string `json:"bastion_user_ip,omitempty"`
	Command         string `json:"command,omitempty"`
	PublicKeyToSign string `json:"public_key_to_sign,omitempty"`
	KMSAuthToken    string `json:"kmsauth_token"`
}

LambdaPayload is the payload for the bless lambda

type LambdaResponse

type LambdaResponse struct {
	Certificate  *string `json:"certificate,omitempty"`
	ErrorType    *string `json:"errorType"`
	ErrorMessage *string `json:"errorMessage"`
}

LambdaResponse is a lambda response

Jump to

Keyboard shortcuts

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