cmdb

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 12 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) GetOrgClusterRelationsByOrg

func (c *Cmdb) GetOrgClusterRelationsByOrg(ctx context.Context, orgID string) (*orgpb.GetOrgClusterRelationsByOrgResponse, error)

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

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 WithOrgSvc

func WithOrgSvc(orgSvc orgpb.OrgServiceServer) Option

func WithURL

func WithURL(url string) Option

WithURL .

Jump to

Keyboard shortcuts

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