Documentation ¶
Index ¶
- Constants
- Variables
- func CreateRequest()
- func DownloadFile(url, outputDir, fileName string) error
- func FormatDuration(duration time.Duration) string
- func FormatPath() string
- func GetCategoryIDByName(name string) (uuid.UUID, error)
- func GetFleetInfo(fleetName string) *types.Fleet
- func GetMe() *types.User
- func GetObjects(args []string) (*types.SpaceDetailed, *types.Project, *types.Workflow, bool)
- func GetRunIDFromWorkflowURL(workflowURL string) (string, error)
- func GetSpaceByName(name string) *types.SpaceDetailed
- func GetSpaces(name string) []types.Space
- func GetToken() string
- func GetVault() uuid.UUID
- func GetWorkflowByID(id uuid.UUID) *types.Workflow
- func GetWorkflows(projectID, spaceID uuid.UUID, search string, library bool) []types.Workflow
- func ResolveObjectPath(path string, silent bool) (*types.SpaceDetailed, *types.Project, *types.Workflow, bool)
- func ResolveObjectURL(objectURL string) (*types.SpaceDetailed, *types.Project, *types.Workflow, bool)
- func SearchLibraryCategories(name string) ([]types.Category, error)
- type UnexpectedResponse
Constants ¶
View Source
const (
BaseURL = "https://api.trickest.io/hive/"
)
Variables ¶
Functions ¶
func CreateRequest ¶
func CreateRequest()
func DownloadFile ¶ added in v1.5.0
func FormatDuration ¶
func FormatPath ¶
func FormatPath() string
func GetFleetInfo ¶
func GetObjects ¶ added in v1.5.0
GetObjects handles different input scenarios for retrieving platform objects.
Examples:
- trickest get space_name/project_name/workflow_name
- trickest get --space space_name --project project_name --workflow workflow_name
- trickest get --url https://trickest.io/editor/00000000-0000-0000-0000-000000000000
func GetRunIDFromWorkflowURL ¶ added in v1.5.1
func GetSpaceByName ¶ added in v1.5.0
func GetSpaceByName(name string) *types.SpaceDetailed
func GetWorkflows ¶ added in v1.5.0
func ResolveObjectPath ¶ added in v1.5.0
func ResolveObjectURL ¶ added in v1.5.0
Types ¶
type UnexpectedResponse ¶
type UnexpectedResponse map[string]interface{}
Click to show internal directories.
Click to hide internal directories.