Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetIAMClientFunc ¶ added in v0.2.0
type GetIAMClientFunc func(c hcpconf.HCPConfig) (iam_service.ClientService, error)
GetIAMClientFunc is the function definition for retrieving an IAM service client from a HCP Config.
type LoginOpts ¶
type LoginOpts struct { Ctx context.Context IO iostreams.IOStreams Profile *profile.Profile Quiet bool // GetIAM retrieves an IAM service client using the passed HCP Config. GetIAM GetIAMClientFunc // ConfigFn is used to retrieve a new HCP Config ConfigFn NewConfigFunc // CredentialDir is the directory to store any necessary credential files. CredentialDir string // CredentialFile is the path to a credential file to use to login CredentialFile string // ClientID and ClientSecret are used to authenticate using service // principal credentials. ClientID string ClientSecret string }
type LogoutOpts ¶
type NewConfigFunc ¶
type NewConfigFunc func(opts ...hcpconf.HCPConfigOption) (hcpconf.HCPConfig, error)
NewConfigFunc is the function definition for retrieving a new HCPConfig
Click to show internal directories.
Click to hide internal directories.