Documentation ¶
Index ¶
- func BuildLabelString(key string, value string) string
- func CreateLabelBindings(cr *CreateLabelBindingsArgs, userName string, logger *zap.SugaredLogger) error
- func DeleteLabelBindings(dr *DeleteLabelBindingsArgs, userName string, logger *zap.SugaredLogger) error
- func DeleteLabels(ids []string, forceDelete bool, userName string, logger *zap.SugaredLogger) error
- func DeleteLabelsAndBindingsByProject(projectName string, logger *zap.SugaredLogger) error
- func DeleteLabelsBindingsByIds(ids []string) error
- type CreateLabelBindingsArgs
- type CreateLabelsArgs
- type CreateLabelsResp
- type DeleteLabelBindingsArgs
- type DeleteLabelsArgs
- type DeleteLabelsBindingsByIdsArgs
- type ListLabelsArgs
- type ListLabelsByResourcesReq
- type ListLabelsByResourcesResp
- type ListLabelsResp
- type ListResourceByLabelsReq
- type ListResourcesByLabelsResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLabelString ¶
func CreateLabelBindings ¶
func CreateLabelBindings(cr *CreateLabelBindingsArgs, userName string, logger *zap.SugaredLogger) error
func DeleteLabelBindings ¶
func DeleteLabelBindings(dr *DeleteLabelBindingsArgs, userName string, logger *zap.SugaredLogger) error
func DeleteLabels ¶
func DeleteLabelsAndBindingsByProject ¶
func DeleteLabelsAndBindingsByProject(projectName string, logger *zap.SugaredLogger) error
Types ¶
type CreateLabelBindingsArgs ¶
type CreateLabelBindingsArgs struct {
LabelBindings []*mongodb.LabelBinding `json:"label_bindings"`
}
type CreateLabelsArgs ¶
type CreateLabelsResp ¶
func CreateLabels ¶
func CreateLabels(arg *CreateLabelsArgs, userName string) (*CreateLabelsResp, error)
type DeleteLabelBindingsArgs ¶
type DeleteLabelBindingsArgs struct {
LabelBindings []*mongodb.LabelBinding `json:"label_bindings"`
}
type DeleteLabelsArgs ¶
type DeleteLabelsArgs struct {
IDs []string
}
type DeleteLabelsBindingsByIdsArgs ¶
type DeleteLabelsBindingsByIdsArgs struct {
IDs []string
}
type ListLabelsArgs ¶
type ListLabelsByResourcesResp ¶
func ListLabelsByResources ¶
func ListLabelsByResources(resources []mongodb.Resource, logger *zap.SugaredLogger) (*ListLabelsByResourcesResp, error)
type ListLabelsResp ¶
func ListLabels ¶
func ListLabels(args *ListLabelsArgs) (*ListLabelsResp, error)
type ListResourceByLabelsReq ¶
type ListResourcesByLabelsResp ¶
type ListResourcesByLabelsResp struct {
Resources map[string][]mongodb.Resource `json:"resources"`
}
func ListResourcesByLabels ¶
func ListResourcesByLabels(filters []mongodb.Label, logger *zap.SugaredLogger) (*ListResourcesByLabelsResp, error)
Click to show internal directories.
Click to hide internal directories.