cmdb

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmdb

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

Cmdb .

func New

func New(options ...Option) *Cmdb

New .

func (*Cmdb) QueryAllOrgClusterRelation

func (c *Cmdb) QueryAllOrgClusterRelation() ([]*OrgClusterRelationDTO, error)

QueryAllOrgClusterRelation 获取所有的企业集群关联关系

func (*Cmdb) QueryNotifyGroup

func (c *Cmdb) QueryNotifyGroup(groupIDs []string) ([]*apistructs.NotifyGroup, error)

QueryNotifyGroup .

type Option

type Option func(cmdb *Cmdb)

Option .

func WithHTTPClient

func WithHTTPClient(hc *httpclient.HTTPClient) Option

WithHTTPClient .

func WithOperatorID

func WithOperatorID(operatorID string) Option

WithOperatorID .

func WithURL

func WithURL(url string) Option

WithURL .

type OrgClusterRelationDTO

type OrgClusterRelationDTO struct {
	ID          uint64    `json:"id"`
	OrgID       uint64    `json:"orgId"`
	OrgName     string    `json:"orgName"`
	ClusterID   uint64    `json:"clusterId"`
	ClusterName string    `json:"clusterName"`
	Creator     string    `json:"creator"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

OrgClusterRelationDTO 企业对应集群关系结构

Jump to

Keyboard shortcuts

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