cmdb

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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