zadigcli

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OriginalWorkflowTaskResp

type OriginalWorkflowTaskResp struct {
	TaskId        int      `json:"task_id"`
	BuildServices []string `json:"build_services"`
	Stages        []Stages `json:"stages"`
	Status        string   `json:"status"`
}

type OriginalWorkflowTasksResp

type OriginalWorkflowTasksResp struct {
	Data  []OriginalWorkflowTaskResp `json:"data"`
	Total int                        `json:"total"`
}

type S3StorageResp

type S3StorageResp struct {
	Bucket    string `json:"bucket"`
	Endpoint  string `json:"endpoint"`
	Subfolder string `json:"subfolder"`
}

type Stages

type Stages struct {
	Type     string      `json:"type"`
	SubTasks interface{} `json:"sub_tasks"`
	Status   string      `json:"status"`
}

type WorkflowResp

type WorkflowResp struct {
	WorkflowName string `json:"name"`
}

type WorkflowTaskResp

type WorkflowTaskResp struct {
	TaskId    int    `json:"task_id"`
	ImageName string `json:"image_name"`
}

type WorkflowTasksReq

type WorkflowTasksReq struct {
	ZadigHost    string
	ZadigToken   string
	ProjectName  string
	WorkflowName string
	FileType     string
	Limit        int
	Skip         int
}

type WorkflowsReq

type WorkflowsReq struct {
	ZadigHost   string
	ZadigToken  string
	ProjectName string
}

type ZadigClient

type ZadigClient struct {
	// contains filtered or unexported fields
}

func GetZadigXCli

func GetZadigXCli(ctx context.Context) *ZadigClient

func (*ZadigClient) GetWorkflowTasks

func (c *ZadigClient) GetWorkflowTasks(ctx context.Context, cliReq WorkflowTasksReq) (total int, resp []*WorkflowTaskResp, err error)

func (*ZadigClient) GetWorkflows

func (c *ZadigClient) GetWorkflows(ctx context.Context, cliReq WorkflowsReq) (resp []*WorkflowResp, err error)

Jump to

Keyboard shortcuts

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