util

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL = "https://hive-api.trickest.io/"
)

Variables

View Source
var (
	Cfg = types.Config{
		BaseUrl: BaseURL,
	}
	SpaceName    string
	ProjectName  string
	WorkflowName string
	URL          string
)

Functions

func CreateRequest

func CreateRequest()

func DownloadFile added in v1.5.0

func DownloadFile(url, outputDir, fileName string) error

func FormatDuration

func FormatDuration(duration time.Duration) string

func FormatPath

func FormatPath() string

func GetCategoryIDByName added in v1.7.0

func GetCategoryIDByName(name string) (uuid.UUID, error)

func GetFleetInfo

func GetFleetInfo(fleetName string) *types.Fleet

func GetMe

func GetMe() *types.User

func GetObjects added in v1.5.0

func GetObjects(args []string) (*types.SpaceDetailed, *types.Project, *types.Workflow, bool)

GetObjects handles different input scenarios for retrieving platform objects.

Examples:

func GetRunIDFromWorkflowURL added in v1.5.1

func GetRunIDFromWorkflowURL(workflowURL string) (string, error)

func GetSpaceByName added in v1.5.0

func GetSpaceByName(name string) *types.SpaceDetailed

func GetSpaces added in v1.5.0

func GetSpaces(name string) []types.Space

func GetToken

func GetToken() string

func GetVault

func GetVault() uuid.UUID

func GetWorkflowByID added in v1.5.0

func GetWorkflowByID(id uuid.UUID) *types.Workflow

func GetWorkflows added in v1.5.0

func GetWorkflows(projectID, spaceID uuid.UUID, search string, library bool) []types.Workflow

func ResolveObjectPath added in v1.5.0

func ResolveObjectPath(path string, silent bool) (*types.SpaceDetailed, *types.Project, *types.Workflow, bool)

func ResolveObjectURL added in v1.5.0

func ResolveObjectURL(objectURL string) (*types.SpaceDetailed, *types.Project, *types.Workflow, bool)

func SearchLibraryCategories added in v1.7.0

func SearchLibraryCategories(name string) ([]types.Category, error)

Types

type UnexpectedResponse

type UnexpectedResponse map[string]interface{}

Jump to

Keyboard shortcuts

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