Documentation ¶
Index ¶
- Variables
- func GetClientsByName(c api.Client, workspace string, clients []string) ([]string, error)
- func GetProjectByName(c api.Client, workspace, project string) (string, error)
- func GetTagsByName(c api.Client, workspace string, tags []string) ([]string, error)
- func GetTaskByName(c api.Client, f api.GetTasksParam, task string) (string, error)
- func GetTasksByName(c api.Client, f api.GetTasksParam, tasks []string) ([]string, error)
- func GetUsersByName(c api.Client, workspace string, users []string) ([]string, error)
- type ErrNotFound
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyReference = errors.New("no reference informed")
Functions ¶
func GetClientsByName ¶
GetClientsByName receives a list of id or names of clients and returns their ids
func GetProjectByName ¶
func GetTagsByName ¶
GetTagsByName receives a list of id or names of tags and returns their ids
func GetTaskByName ¶
GetTasksByName will try to find the first task containing the string on its name or id that matches the value
func GetTasksByName ¶
GetTasksByName will try to find tasks containing the string on its name or id that matches the value
Types ¶
type ErrNotFound ¶
ErrNotFound represents a fail to identify a entity by its name or id
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.