search

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyReference = errors.New("no reference informed")

Functions

func GetClientByName added in v0.40.0

func GetClientByName(
	c api.Client,
	workspace string,
	client string,
) (string, error)

GetClientByName will look for a client that the id or name Contains the string on client parameter

func GetClientsByName

func GetClientsByName(
	c api.Client,
	workspace string,
	clients []string,
) ([]string, error)

GetClientsByName receives a list of id or names of clients and returns their ids

func GetProjectByName

func GetProjectByName(
	c api.Client,
	workspace,
	project string,
) (string, error)

func GetProjectsByName added in v0.40.0

func GetProjectsByName(
	c api.Client,
	workspace string,
	projects []string,
) ([]string, error)

GetProjectsByName will try to find projects containing the string on its name or id that matches the value

func GetTagsByName

func GetTagsByName(
	c api.Client,
	workspace string,
	tags []string,
) ([]string, error)

GetTagsByName receives a list of id or names of tags and returns their ids

func GetTaskByName

func GetTaskByName(
	c api.Client,
	f api.GetTasksParam,
	task string,
) (string, error)

GetTaskByName will try to find the first task containing the string on its name or id that matches the value

func GetTasksByName

func GetTasksByName(
	c api.Client,
	f api.GetTasksParam,
	tasks []string,
) ([]string, error)

GetTasksByName will try to find tasks containing the string on its name or id that matches the value

func GetUsersByName

func GetUsersByName(
	c api.Client,
	workspace string,
	users []string,
) ([]string, error)

GetUsersByName receives a list of id or names of clients and returns their ids

Types

type ErrNotFound

type ErrNotFound struct {
	EntityName string
	Reference  string
}

ErrNotFound represents a fail to identify a entity by its name or id

func (ErrNotFound) Error

func (e ErrNotFound) Error() string

Jump to

Keyboard shortcuts

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