Documentation ¶
Index ¶
- func CreateLabel(ctx context.Context, domain string, labels map[string]string, project string) (*model.LabelDoc, error)
- func Exist(ctx context.Context, domain string, project string, labels map[string]string) (primitive.ObjectID, error)
- func FindLabels(ctx context.Context, domain string, project string, labels map[string]string) (*model.LabelDoc, error)
- func GetLatestLabel(ctx context.Context, labelID string) (*model.LabelRevisionDoc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLabel ¶
func CreateLabel(ctx context.Context, domain string, labels map[string]string, project string) (*model.LabelDoc, error)
CreateLabel create a new label
func Exist ¶
func Exist(ctx context.Context, domain string, project string, labels map[string]string) (primitive.ObjectID, error)
Exist check whether the project has certain label or not and return label ID
func FindLabels ¶
func FindLabels(ctx context.Context, domain string, project string, labels map[string]string) (*model.LabelDoc, error)
FindLabels find label doc by labels and project, check if the project has certain labels if map is empty. will return default labels doc which has no labels
func GetLatestLabel ¶
GetLatestLabel query revision table and find maximum revision number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.