client

package
v0.0.0-...-616e5a8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 10 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 {
	Project  *Project
	Job      *Job
	Variant  *Variant
	Image    *Image
	User     *User
	Internal *Internal
}

func New

func New(config *Config) (*Client, error)

type Config

type Config struct {
	URL      string
	Username string
	Password string
}

type Image

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

func (*Image) Get

func (c *Image) Get(name string) (*lib.Image, error)

func (*Image) List

func (c *Image) List() ([]*lib.Image, error)

func (*Image) Set

func (c *Image) Set(name, image string) error

type Internal

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

func (*Internal) AddJobSCMMetadata

func (in *Internal) AddJobSCMMetadata(jobID string, m *lib.SCMMetadata) error

func (*Internal) AddVariant

func (in *Internal) AddVariant(variant *lib.Variant) (*lib.Variant, error)

func (*Internal) GetProjectCryptoKey

func (in *Internal) GetProjectCryptoKey(projectID string) (*lib.CryptoKey, error)

func (*Internal) MarkJobAsFinished

func (in *Internal) MarkJobAsFinished(jobID string, status lib.JobStatus) error

func (*Internal) MarkVariantAsFinished

func (in *Internal) MarkVariantAsFinished(variantID string, status lib.JobStatus, when time.Time, artifacts []string) error

type Job

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

func (*Job) Get

func (c *Job) Get(jobID string) (*lib.Job, error)

func (*Job) List

func (c *Job) List() ([]lib.Job, error)

func (*Job) Log

func (c *Job) Log(jobID string) ([]lib.LogEntry, error)

func (*Job) StreamLog

func (c *Job) StreamLog(jobID string) (chan lib.LogEntry, error)

func (*Job) Variants

func (c *Job) Variants(jobID string) ([]lib.Variant, error)

type Project

type Project struct {
	Key    *ProjectKey
	Config *ProjectConfig
	// contains filtered or unexported fields
}

func (*Project) Create

func (c *Project) Create(name, scm, scmUri string) (*lib.Project, error)

func (*Project) EncryptData

func (c *Project) EncryptData(projectID, toEncryptString string) (string, error)

func (*Project) Get

func (c *Project) Get(projectID string) (*lib.Project, error)

func (*Project) Jobs

func (c *Project) Jobs(projectID string) ([]lib.Job, error)

func (*Project) List

func (c *Project) List() ([]lib.Project, error)

func (*Project) StartJob

func (c *Project) StartJob(projectID, scmReference string, envParameters []string) (*lib.Job, error)

type ProjectConfig

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

func (*ProjectConfig) Get

func (c *ProjectConfig) Get(id string) (map[string]string, error)

func (*ProjectConfig) SetKey

func (c *ProjectConfig) SetKey(id, key, value string) error

func (*ProjectConfig) UnsetKey

func (c *ProjectConfig) UnsetKey(id, key string) error

type ProjectKey

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

func (*ProjectKey) Get

func (c *ProjectKey) Get(projectID string) (*lib.SSHKey, error)

func (*ProjectKey) Set

func (c *ProjectKey) Set(projectID, keyPath string) error

type User

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

func (*User) Create

func (c *User) Create(email, password string) (*lib.User, error)

func (*User) List

func (c *User) List() ([]lib.User, error)

type Variant

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

func (*Variant) Get

func (c *Variant) Get(variantID string) (*lib.Variant, error)

func (*Variant) Log

func (c *Variant) Log(variantID string) ([]lib.LogEntry, error)

func (*Variant) StreamLog

func (c *Variant) StreamLog(variantID string) (chan lib.LogEntry, error)

Jump to

Keyboard shortcuts

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