client

package
v1.84.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClientModule for fx.
	ClientModule = fx.Options(
		v1.Module,
		fx.Provide(NewClient),
	)

	// CommandModule for fx.
	CommandModule = fx.Options(
		ClientModule,
		fx.Provide(NewOutputConfig),
		fx.Invoke(RunCommand),
	)
)
View Source
var OutputFlag string

OutputFlag for client.

Functions

func RunCommand added in v1.33.0

func RunCommand(params RunCommandParams)

RunCommand for client.

Types

type Client added in v1.33.0

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

Client for konfig.

func NewClient added in v1.33.0

func NewClient(client v1.ServiceClient, config *v1c.Config) *Client

NewClient for konfig.

func (*Client) Config added in v1.33.0

func (c *Client) Config(ctx context.Context) ([]byte, error)

Config from client.

type Config

type Config struct {
	V1 *config.Config `yaml:"v1,omitempty" json:"v1,omitempty" toml:"v1,omitempty"`
}

Config for client.

type OutputConfig added in v1.33.0

type OutputConfig struct {
	*cmd.Config
}

OutputConfig for client.

func NewOutputConfig added in v1.33.0

func NewOutputConfig(factory *marshaller.Factory) (*OutputConfig, error)

NewOutputConfig for client.

type RunCommandParams added in v1.33.0

type RunCommandParams struct {
	fx.In

	Lifecycle    fx.Lifecycle
	Client       *Client
	OutputConfig *OutputConfig
	Config       *v1.Config
}

RunCommandParams for client.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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