Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateLabelBindings(request CreateLabelBindingsArgs) error
- func (c *Client) CreateLabels(request CreateLabelsArgs) (*CreateLabelsResp, error)
- func (c *Client) DeleteLabelBindings(request DeleteLabelBindingsArgs) error
- func (c *Client) DeleteLabels(ids []string) error
- func (c *Client) ListLabels(request ListLabelsArgs) (*ListLabelsResp, error)
- func (c *Client) ListLabelsByResources(request ListLabelsByResourcesReq) (*ListLabelsByResourcesResp, error)
- func (c *Client) ListResourcesByLabels(request ListResourcesByLabelsReq) (*ListResourcesByLabelsResp, error)
- type CreateLabelBindingsArgs
- type CreateLabelsArgs
- type CreateLabelsResp
- type DeleteLabelBindingsArgs
- type Label
- type LabelBinding
- type LabelModel
- type ListLabelsArgs
- type ListLabelsByResourcesReq
- type ListLabelsByResourcesResp
- type ListLabelsResp
- type ListResourcesByLabelsReq
- type ListResourcesByLabelsResp
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *httpclient.Client // contains filtered or unexported fields }
func (*Client) CreateLabelBindings ¶
func (c *Client) CreateLabelBindings(request CreateLabelBindingsArgs) error
func (*Client) CreateLabels ¶
func (c *Client) CreateLabels(request CreateLabelsArgs) (*CreateLabelsResp, error)
func (*Client) DeleteLabelBindings ¶
func (c *Client) DeleteLabelBindings(request DeleteLabelBindingsArgs) error
func (*Client) DeleteLabels ¶
func (*Client) ListLabels ¶
func (c *Client) ListLabels(request ListLabelsArgs) (*ListLabelsResp, error)
func (*Client) ListLabelsByResources ¶
func (c *Client) ListLabelsByResources(request ListLabelsByResourcesReq) (*ListLabelsByResourcesResp, error)
func (*Client) ListResourcesByLabels ¶
func (c *Client) ListResourcesByLabels(request ListResourcesByLabelsReq) (*ListResourcesByLabelsResp, error)
type CreateLabelBindingsArgs ¶
type CreateLabelBindingsArgs struct {
LabelBindings []LabelBinding `json:"label_bindings"`
}
type CreateLabelsArgs ¶
type CreateLabelsArgs struct {
Labels []Label `json:"labels"`
}
type CreateLabelsResp ¶
type DeleteLabelBindingsArgs ¶
type DeleteLabelBindingsArgs struct {
LabelBindings []LabelBinding `json:"label_bindings"`
}
type Label ¶
type Label struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Type string `bson:"type" json:"type"` Key string `bson:"key" json:"key"` Value string `bson:"value" json:"value"` CreateBy string `bson:"create_by" json:"create_by"` CreateTime int64 `bson:"create_time" json:"create_time"` }
type LabelBinding ¶
type LabelModel ¶
type ListLabelsArgs ¶
type ListLabelsArgs struct {
Labels []LabelModel `json:"labels"`
}
type ListLabelsByResourcesReq ¶
type ListLabelsByResourcesReq struct {
Resources []Resource `json:"resources"`
}
type ListLabelsResp ¶
type ListLabelsResp struct {
Labels []Label `json:"labels"`
}
type ListResourcesByLabelsReq ¶
type ListResourcesByLabelsReq struct {
LabelFilters []Label `json:"label_filters"`
}
Click to show internal directories.
Click to hide internal directories.