Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminClient ¶
type AdminClient = *gapic.AdminClient
func NewAdminClient ¶
func NewAdminClient(ctx context.Context) (AdminClient, error)
NewAdminClient creates a new client using the active Config.
func NewAdminClientWithSettings ¶
func NewAdminClientWithSettings(ctx context.Context, config Config) (AdminClient, error)
NewAdminClientWithSettings creates a client with specified Config.
type Config ¶ added in v0.5.5
type Config struct { Address string `mapstructure:"address"` // service address Insecure bool `mapstructure:"insecure"` // if true, connect over HTTP Location string `mapstructure:"location"` // optional Project string `mapstructure:"project"` // optional Token string `mapstructure:"token"` // bearer token }
Config configures the client.
func ActiveConfig ¶ added in v0.5.5
ActiveConfig returns the active config.
func ReadConfig ¶ added in v0.5.5
Reads a Config from a file. If name is empty, no file will be loaded and only bound flags and env vars will be used.
type ProvisioningClient ¶ added in v0.5.5
type ProvisioningClient = *gapic.ProvisioningClient
func NewProvisioningClient ¶ added in v0.5.5
func NewProvisioningClient(ctx context.Context) (ProvisioningClient, error)
NewAdminClient creates a new client using the active Config.
func NewProvisioningClientWithSettings ¶ added in v0.5.5
func NewProvisioningClientWithSettings(ctx context.Context, config Config) (ProvisioningClient, error)
NewAdminClientWithSettings creates a GAPIC client with specified Config.
type RegistryClient ¶
type RegistryClient = *gapic.RegistryClient
RegistryClient is a client of the Registry API
func NewRegistryClient ¶ added in v0.5.5
func NewRegistryClient(ctx context.Context) (RegistryClient, error)
NewRegistryClient creates a new client using the active Config.
func NewRegistryClientWithSettings ¶ added in v0.5.5
func NewRegistryClientWithSettings(ctx context.Context, config Config) (RegistryClient, error)
NewRegistryClientWithSettings creates a client with specified Config.