managers

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 8

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) awsec2.AwsCreds

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, string)

GetAzureCreds returns clientID, clientSecret, tenantID, subscriptionID

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