request

package
v0.0.0-...-b4339e2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildJobConfig

type BuildJobConfig struct {
	Dockerfile string   `json:"dockerfile"`
	Context    string   `json:"context"`
	Workdir    string   `json:"workdir"`
	EnvVars    []string `json:"env"`
}

type BuildJobImage

type BuildJobImage struct {
	Host  string `json:"host"`
	Name  string `json:"name"`
	Owner string `json:"owner"`
	Tag   string `json:"tag"`
	Token string `json:"token"`
}

type BuildJobMeta

type BuildJobMeta struct {
	ID      string `json:"id"`
	LogsUri string `json:"logs_uri"`
}

type BuildLogsOptions

type BuildLogsOptions struct {
	Follow bool `json:"follow"`
}

func (*BuildLogsOptions) DecodeAndValidate

func (b *BuildLogsOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*BuildLogsOptions) Validate

func (b *BuildLogsOptions) Validate() *errors.Err

type BuildRequest

type BuildRequest struct{}

func (BuildRequest) ExecuteOptions

func (BuildRequest) ExecuteOptions() *BuildTaskExecuteOptions

type BuildTaskExecuteOptions

type BuildTaskExecuteOptions struct {
	ID     string         `json:"id,omitempty"`
	Meta   BuildJobMeta   `json:"meta"`
	Image  BuildJobImage  `json:"image"`
	Config BuildJobConfig `json:"config"`
	Repo   string         `json:"repo"`
	Branch string         `json:"branch"`
	LogUri string         `json:"log_uri"`
}

func (*BuildTaskExecuteOptions) DecodeAndValidate

func (b *BuildTaskExecuteOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (*BuildTaskExecuteOptions) Validate

func (b *BuildTaskExecuteOptions) Validate() *errors.Err

type BuilderLimitConfig

type BuilderLimitConfig struct {
	WorkerRAM int64 `json:"worker_ram"`
	WorkerCPU int64 `json:"worker_cpu"`
	Workers   uint  `json:"workers"`
}

type BuilderRequest

type BuilderRequest struct{}

func (BuilderRequest) BuilderUpdateManifestOptions

func (BuilderRequest) BuilderUpdateManifestOptions() *BuilderUpdateManifestOptions

type BuilderUpdateManifestOptions

type BuilderUpdateManifestOptions struct {
	Limits *BuilderLimitConfig `json:"limits,omitempty"`
}

func (*BuilderUpdateManifestOptions) DecodeAndValidate

func (b *BuilderUpdateManifestOptions) DecodeAndValidate(reader io.Reader) *errors.Err

func (BuilderUpdateManifestOptions) ToJson

func (b BuilderUpdateManifestOptions) ToJson() ([]byte, error)

func (*BuilderUpdateManifestOptions) Validate

func (b *BuilderUpdateManifestOptions) Validate() *errors.Err

type Request

type Request struct{}

func New

func New() *Request

func (Request) Build

func (Request) Build() *BuildRequest

func (Request) Builder

func (Request) Builder() *BuilderRequest

type TaskRequest

type TaskRequest struct{}

func (TaskRequest) ExecuteOptions

func (TaskRequest) ExecuteOptions() *BuildLogsOptions

Jump to

Keyboard shortcuts

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