client

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	APIBase string
	Conn    *http.Client
}

func NewAslanClient

func NewAslanClient(host string) *Client

NewAslanClient is to get aslan client func

func (*Client) CreateWebHookUser

func (c *Client) CreateWebHookUser(webHookUser *service.DomainWebHookUser, log *zap.SugaredLogger) error

func (*Client) GetEnvService

func (c *Client) GetEnvService(productName, envName string, log *zap.SugaredLogger) (*service.ProductResp, error)

func (*Client) GetHostInfo

func (c *Client) GetHostInfo(hostID string, log *zap.SugaredLogger) (*service.PrivateKey, error)

func (*Client) GetService

func (c *Client) GetService(serviceName, productName, serviceType string, revision int64, log *zap.SugaredLogger) (*service.Service, error)

func (*Client) GetWebHookUser

func (c *Client) GetWebHookUser(log *zap.SugaredLogger) (*service.DomainWebHookUser, error)

func (*Client) InitOperationStatData

func (c *Client) InitOperationStatData(log *zap.SugaredLogger) error

func (*Client) InitPullSonarDeliveryMeasure

func (c *Client) InitPullSonarDeliveryMeasure(log *zap.SugaredLogger) error

func (*Client) InitPullSonarRepos

func (c *Client) InitPullSonarRepos(log *zap.SugaredLogger) error

func (*Client) InitPullSonarStatScheduler

func (c *Client) InitPullSonarStatScheduler(log *zap.SugaredLogger) error

func (*Client) InitPullSonarTestsMeasure

func (c *Client) InitPullSonarTestsMeasure(log *zap.SugaredLogger) error

func (*Client) InitStatData

func (c *Client) InitStatData(log *zap.SugaredLogger) error

func (*Client) ListEnvs

func (c *Client) ListEnvs(log *zap.SugaredLogger) ([]*service.ProductRevision, error)

func (*Client) ListPipelines

func (c *Client) ListPipelines(log *zap.SugaredLogger) ([]*service.Pipeline, error)

func (*Client) ListTests

func (c *Client) ListTests(log *zap.SugaredLogger) ([]*service.TestingOpt, error)

func (*Client) ListWorkflows

func (c *Client) ListWorkflows(log *zap.SugaredLogger) ([]*service.Workflow, error)

ListWorkflows ...

func (*Client) RunPipelineTask

func (c *Client) RunPipelineTask(args *service.TaskArgs, log *zap.SugaredLogger) error

RunPipelineTask ...

func (*Client) RunTestTask

func (c *Client) RunTestTask(args *service.TestTaskArgs, log *zap.SugaredLogger) error

func (*Client) RunWorkflowTask

func (c *Client) RunWorkflowTask(args *service.WorkflowTaskArgs, log *zap.SugaredLogger) error

func (*Client) ScheduleCall

func (c *Client) ScheduleCall(api string, args interface{}, log *zap.SugaredLogger) error

func (*Client) TriggerCleanCache

func (c *Client) TriggerCleanCache(log *zap.SugaredLogger) error

func (*Client) TriggerCleanProducts added in v1.2.0

func (c *Client) TriggerCleanProducts(log *zap.SugaredLogger) error

TriggerCleanProducts ...

func (*Client) TriggerCleanconfigmaps

func (c *Client) TriggerCleanconfigmaps(log *zap.SugaredLogger) error

TriggerCleanconfigmaps ...

func (*Client) TriggerCleanjobs

func (c *Client) TriggerCleanjobs(log *zap.SugaredLogger) error

TriggerCleanjobs ...

func (*Client) TriggerSystemGc

func (c *Client) TriggerSystemGc(log *zap.SugaredLogger) error

func (*Client) UpdateService

func (c *Client) UpdateService(args *service.ServiceTmplObject, log *zap.SugaredLogger) error

type CollieClient

type CollieClient struct {
	*httpclient.Client
	// contains filtered or unexported fields
}

func NewCollieClient

func NewCollieClient(host string) *CollieClient

func (*CollieClient) ListColliePipelines

func (c *CollieClient) ListColliePipelines(log *zap.SugaredLogger) ([]*service.PipelineResource, error)

func (*CollieClient) RunColliePipelineTask

func (c *CollieClient) RunColliePipelineTask(args *service.CreateBuildRequest, log *zap.SugaredLogger) error

type DryRunFlag

type DryRunFlag struct {
	DryRun bool `json:"dryrun"`
}

DryRunFlag indicates whether a run is a dry run or not. If it is a dry run, the relevant API is supposed to be no-op except logging.

Jump to

Keyboard shortcuts

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