clusters

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	ClustersX *Service
}

func (*Controller) GetInfo

func (x *Controller) GetInfo(ctx context.Context, c *app.RequestContext)

func (*Controller) GetNodes

func (x *Controller) GetNodes(ctx context.Context, c *app.RequestContext)

type GetInfoDto

type GetInfoDto struct {
	Id string `path:"id" vd:"mongodb"`
}

type GetNodesDto

type GetNodesDto struct {
	Id string `path:"id" vd:"mongodb"`
}

type Kubeconfig

type Kubeconfig struct {
	Host     string `json:"host"`
	CAData   string `json:"ca_data"`
	CertData string `json:"cert_data"`
	KeyData  string `json:"key_data"`
}

type M

type M = map[string]interface{}

type Service

type Service struct {
	*common.Inject
}

func (*Service) Get added in v0.2.1

func (x *Service) Get(ctx context.Context, id primitive.ObjectID) (data model.Cluster, err error)

func (*Service) GetClient added in v0.2.1

func (x *Service) GetClient(data model.Cluster) (client *kubernetes.Clientset, err error)

func (*Service) GetInfo

func (x *Service) GetInfo(ctx context.Context, id primitive.ObjectID) (result M, err error)

func (*Service) GetNodes

func (x *Service) GetNodes(ctx context.Context, id primitive.ObjectID) (result []interface{}, err error)

Jump to

Keyboard shortcuts

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