client

package
v0.0.0-...-79b970a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOption

type ClientOption interface {
	Apply(ClientSet) error
}

func WithDockerClient

func WithDockerClient() ClientOption

func WithGitClient

func WithGitClient(owner, email, token string) ClientOption

func WithGrpcClient

func WithGrpcClient(host string, port int) ClientOption

func WithHelmClient

func WithHelmClient() ClientOption

func WithHttpClient

func WithHttpClient() ClientOption

func WithKubeClient

func WithKubeClient() ClientOption

func WithStorageClient

func WithStorageClient(storageType, username, password, database string) ClientOption

func WithTraceClient

func WithTraceClient(port int) ClientOption

type ClientSet

type ClientSet interface {
	Set(util.Clients, interface{})
}

type GrpcClient

type GrpcClient interface {
	Close()
	GetConnection() *grpc.ClientConn
	Set(interface{})
}

type GrpcClientOption

type GrpcClientOption struct {
	F func(ClientSet)
}

func (*GrpcClientOption) Apply

func (opt *GrpcClientOption) Apply(cli ClientSet) error

Jump to

Keyboard shortcuts

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