Documentation ¶
Index ¶
- type Client
- func (c *Client) RequestCert(ctx context.Context) error
- func (c *Client) RequestKMSAuthToken(ctx context.Context) (*kmsauth.EncryptedToken, error)
- func (c *Client) WithAwsClient(client *cziAWS.Client) *Client
- func (c *Client) WithTokenGenerator(tg *kmsauth.TokenGenerator) *Client
- func (c *Client) WithUsername(username string) *Client
- type LambdaPayload
- type LambdaResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a bless client
func (*Client) RequestCert ¶
RequestCert requests a cert
func (*Client) RequestKMSAuthToken ¶
RequestKMSAuthToken requests a new kmsauth token
func (*Client) WithAwsClient ¶
WithAwsClient configures an aws client
func (*Client) WithTokenGenerator ¶
WithTokenGenerator configures a token generator
func (*Client) WithUsername ¶
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
Click to show internal directories.
Click to hide internal directories.