Documentation ¶
Index ¶
- func CreateManualNodeManager(db *pgdb.DB) (string, error)
- func GetAWSCreds(secret *secrets.Secret) awsec2.AwsCreds
- func GetAWSManagerFromCredential(ctx context.Context, credential string, db *pgdb.DB, ...) (myaws *awsec2.AwsCreds, err error)
- func GetAWSManagerFromID(ctx context.Context, id string, db *pgdb.DB, ...) (myaws *awsec2.AwsCreds, ssm bool, err error)
- func GetAccountID(ctx context.Context, credential string, db *pgdb.DB, mgrType string, ...) (string, error)
- func GetAzureCreds(secret *secrets.Secret) (string, string, string, string)
- func GetAzureManagerFromCredential(ctx context.Context, credential string, db *pgdb.DB, ...) (myaws *azure.Creds, err error)
- func GetAzureManagerFromID(ctx context.Context, id string, db *pgdb.DB, ...) (*azure.Creds, error)
- func GetGCPManagerFromCredential(ctx context.Context, credential string, db *pgdb.DB, ...) (mygcp *gcp.GcpCreds, err error)
- func GetStateInfoByManager(ctx context.Context, mgrID string, db *pgdb.DB, mgrType string, ...) ([]pgdb.InstanceState, error)
- func SendRemoteExecutionJob(ctx context.Context, job *types.InspecJob, script string, scriptType string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSManagerFromID ¶
func GetAccountID ¶
func GetAzureCreds ¶
GetAzureCreds returns clientID, clientSecret, tenantID, subscriptionID
func GetAzureManagerFromID ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.