Documentation ¶
Index ¶
- Variables
- func GetClientByName(c api.Client, workspace string, client string) (string, error)
- func GetClientsByName(c api.Client, workspace string, clients []string) ([]string, error)
- func GetProjectByName(c api.Client, workspace, project string) (string, error)
- func GetProjectsByName(c api.Client, workspace string, projects []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 GetClientByName ¶ added in v0.40.0
GetClientByName will look for a client that the id or name Contains the string on client parameter
func GetClientsByName ¶
GetClientsByName receives a list of id or names of clients and returns their ids
func GetProjectByName ¶
func GetProjectsByName ¶ added in v0.40.0
GetProjectsByName will try to find projects containing the string on its name or id that matches the value
func GetTagsByName ¶
GetTagsByName receives a list of id or names of tags and returns their ids
func GetTaskByName ¶
GetTaskByName 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.