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://hive-api.cvedb.khulnasoft.com/"
)
Variables ¶
Functions ¶
func CreateRequest ¶
func CreateRequest()
func DownloadFile ¶
func FormatDuration ¶
func FormatPath ¶
func FormatPath() string
func GetFleetInfo ¶
func GetObjects ¶
GetObjects handles different input scenarios for retrieving platform objects.
Examples:
- cvedb get space_name/project_name/workflow_name
- cvedb get --space space_name --project project_name --workflow workflow_name
- cvedb get --url https://cvedb.khulnasoft.com/editor/00000000-0000-0000-0000-000000000000
func GetRunIDFromWorkflowURL ¶
func GetSpaceByName ¶
func GetSpaceByName(name string) *types.SpaceDetailed
func GetWorkflows ¶
func ResolveObjectPath ¶
func ResolveObjectURL ¶
Types ¶
type UnexpectedResponse ¶
type UnexpectedResponse map[string]interface{}
Click to show internal directories.
Click to hide internal directories.