apiclient

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxGRPCMessageSize = 1 << 20 // 100mb
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	NewVerionClient() version.VersionServiceClient
	NewRegistryClient() registry.RegistryServiceClient
}

type ClientOptions

type ClientOptions struct {
	// Host refers to the address of the template-hub
	Host string
}

ClientOptions options for creating a template-hub api client

func AddFlags

func AddFlags(cmd *cobra.Command) *ClientOptions

func (*ClientOptions) Build

func (c *ClientOptions) Build(ctx context.Context) (Client, error)

func (*ClientOptions) InitializePreCommand

func (c *ClientOptions) InitializePreCommand(client *Client) func(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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