managers

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManualNodeManager

func CreateManualNodeManager(db *pgdb.DB) (string, error)

func GetAWSCreds

func GetAWSCreds(secret *secrets.Secret) (string, string, string, string)

func GetAWSManagerFromCredential

func GetAWSManagerFromCredential(ctx context.Context, credential string, db *pgdb.DB, secretsClient secrets.SecretsServiceClient) (myaws *awsec2.AwsCreds, err error)

func GetAWSManagerFromID

func GetAWSManagerFromID(ctx context.Context, id string, db *pgdb.DB, secretsClient secrets.SecretsServiceClient) (myaws *awsec2.AwsCreds, ssm bool, err error)

func GetAccountID

func GetAccountID(ctx context.Context, credential string, db *pgdb.DB, mgrType string, secretsClient secrets.SecretsServiceClient) (string, error)

func GetAzureCreds

func GetAzureCreds(secret *secrets.Secret) (string, string, string)

GetAzureCreds returns clientID, clientSecret, tenantID

func GetAzureManagerFromCredential

func GetAzureManagerFromCredential(ctx context.Context, credential string, db *pgdb.DB, secretsClient secrets.SecretsServiceClient) (myaws *azure.Creds, err error)

func GetAzureManagerFromID

func GetAzureManagerFromID(ctx context.Context, id string, db *pgdb.DB, secretsClient secrets.SecretsServiceClient) (*azure.Creds, error)

func GetGCPManagerFromCredential

func GetGCPManagerFromCredential(ctx context.Context, credential string, db *pgdb.DB, secretsClient secrets.SecretsServiceClient) (mygcp *gcp.GcpCreds, err error)

func GetStateInfoByManager

func GetStateInfoByManager(ctx context.Context, mgrID string, db *pgdb.DB, mgrType string, secretsClient secrets.SecretsServiceClient) ([]pgdb.InstanceState, error)

GetStateInfoByManager takes manager id and returns an array of instance id and its state

func SendRemoteExecutionJob

func SendRemoteExecutionJob(ctx context.Context, job *types.InspecJob, script string, scriptType string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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