Documentation ¶
Index ¶
- func AttachAWSCredentials(cfg *aws.Config, profile *AWSProfile) error
- func CreateVaultRenewer(client *vault.Client, secret *vault.Secret) (*vault.Renewer, error)
- func FetchVaultClient(vaultAddress string) (*vault.Client, *vault.Secret, error)
- func GetQueueURL(cp client.ConfigProvider, queueName string, awsRegion string, ...) string
- func KubernetesClientset(kubeconfig string) *kubernetes.Clientset
- type ASGMessage
- type AWSProfile
- type SpotMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachAWSCredentials ¶
func AttachAWSCredentials(cfg *aws.Config, profile *AWSProfile) error
func CreateVaultRenewer ¶
Used for dynamic credentials
func FetchVaultClient ¶
func GetQueueURL ¶
func GetQueueURL(cp client.ConfigProvider, queueName string, awsRegion string, profile *AWSProfile) string
func KubernetesClientset ¶
func KubernetesClientset(kubeconfig string) *kubernetes.Clientset
Types ¶
type ASGMessage ¶
type AWSProfile ¶
type AWSProfile struct { Profile string AccessKeyID string SecretAccessKey string EC2RoleProvider bool SessionToken string }
func FetchAWSCredentials ¶
func FetchAWSCredentials(client *vault.Client) (AWSProfile, error)
Used for static credentials
func GenerateAWSCredentials ¶
func GenerateAWSCredentials(client *vault.Client) (AWSProfile, int, error)
Used for dynamic credentials
func (*AWSProfile) BuildSession ¶
func (c *AWSProfile) BuildSession(region string) *session.Session
func (*AWSProfile) IsValid ¶
func (c *AWSProfile) IsValid() bool
func (*AWSProfile) Shared ¶
func (c *AWSProfile) Shared() bool
func (*AWSProfile) Static ¶
func (c *AWSProfile) Static() bool
Click to show internal directories.
Click to hide internal directories.