registry

package
v0.0.0-...-d691e2b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NOAuthType  = "noauth"
	BCEAuthType = "cloud"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOption

type AuthOption struct {
	Name     string
	Params   map[string]interface{}
	ParamStr string
}

type Options

type Options struct {
	Endpoint     string
	Version      string
	AuthTransfer bool
	Auth         *AuthOption
}

func NewEmptyOption

func NewEmptyOption() *Options

func NewOption

func NewOption() *Options

func (*Options) AddFlags

func (s *Options) AddFlags(prefix string, fs *pflag.FlagSet)

func (*Options) IsEmpty

func (o *Options) IsEmpty() bool

type Registry

type Registry interface {
	GetFunction(input *api.GetFunctionInput) (*api.GetFunctionOutput, error)
	GetAlias(input *api.GetAliasInput) (*api.GetAliasOutput, error)
	GetRuntimeConfiguration(input *api.GetRuntimeConfigurationInput) (*api.RuntimeConfiguration, error)
}

func NewRegistry

func NewRegistry(o *Options) (r Registry, err error)

type RegistryClient

type RegistryClient struct {
	// contains filtered or unexported fields
}

func (*RegistryClient) GetAlias

func (c *RegistryClient) GetAlias(input *api.GetAliasInput) (*api.GetAliasOutput, error)

func (*RegistryClient) GetFunction

func (c *RegistryClient) GetFunction(input *api.GetFunctionInput) (*api.GetFunctionOutput, error)

func (*RegistryClient) GetRuntimeConfiguration

func (c *RegistryClient) GetRuntimeConfiguration(input *api.GetRuntimeConfigurationInput) (*api.RuntimeConfiguration, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL