label

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func GetLatestLabel(ctx context.Context, labelID string) (*model.LabelRevisionDoc, error)

GetLatestLabel query revision table and find maximum revision number

Types

This section is empty.

Jump to

Keyboard shortcuts

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