Help us shape the future of Go! Take the 2026 Go Developer Survey

clusters

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 {
	ClustersService *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,required" vd:"mongoId($);msg:'the document id must be an ObjectId'"`
}

type GetNodesDto

type GetNodesDto struct {
	Id string `path:"id,required" vd:"mongoId($);msg:'the document id must be an ObjectId'"`
}

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) GetInfo

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

func (*Service) GetKube

func (x *Service) GetKube(ctx context.Context, id primitive.ObjectID) (kube *kubernetes.Clientset, err error)

func (*Service) GetNodes

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

Jump to

Keyboard shortcuts

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