Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct { AuthMethod AuthMethod `json:"authMethod"` Username string `json:"username"` Password string `json:"password"` Token string `json:"token"` }
type AuthMethod ¶
type AuthMethod string
const ( BasicAuth AuthMethod = "BasicAuth" BearerToken AuthMethod = "BearerToken" )
type Client ¶
type Client interface {
GetMachineMetadata() (*MachineMetadata, error)
}
func NewMetadataClient ¶
type Config ¶
type Config struct { Endpoint string `json:"endpoint,omitempty"` AuthConfig *AuthConfig `json:"authConfig,omitempty"` }
Click to show internal directories.
Click to hide internal directories.