Versions in this module Expand all Collapse all v0 v0.1.0 Oct 12, 2018 Changes in this version + const SrvVersion + const VersionStateDeprecated + const VersionStateDevel + const VersionStateStable + var ErrArtifactNotFound = errors.New("artifact not found") + var ErrBeforeAfterNotAllowed = errors.New("setting both before and after qeury parameters is not allowed") + var ErrJobNotFound = errors.New("job not found") + var ErrJobStatusChangeNotAllowed = errors.New("job status change not allowed") + var ErrNotImplemented = errors.New("function not implemented") + type Action struct + func (a *Action) UnmarshalYAML(unmarshal func(interface{}) error) error + type ActionTab []LocalActionContainer + type ArtifactAlias string + func (m ArtifactAlias) Validate(formats strfmt.Registry) error + type ArtifactDescription struct + Alias ArtifactAlias + JobID JobID + Type ArtifactType + URI ArtifactURI + func (m *ArtifactDescription) MarshalBinary() ([]byte, error) + func (m *ArtifactDescription) UnmarshalBinary(b []byte) error + func (m *ArtifactDescription) Validate(formats strfmt.Registry) error + type ArtifactFilter struct + Alias []ArtifactAlias + JobID []JobID + Status []ArtifactStatus + Type []ArtifactType + func (m *ArtifactFilter) MarshalBinary() ([]byte, error) + func (m *ArtifactFilter) UnmarshalBinary(b []byte) error + func (m *ArtifactFilter) Validate(formats strfmt.Registry) error + type ArtifactInfo struct + ID int64 + Path ArtifactPath + Status ArtifactStatus + Timestamp strfmt.DateTime + func (m *ArtifactInfo) MarshalBinary() ([]byte, error) + func (m *ArtifactInfo) UnmarshalBinary(b []byte) error + func (m *ArtifactInfo) UnmarshalJSON(raw []byte) error + func (m *ArtifactInfo) Validate(formats strfmt.Registry) error + func (m ArtifactInfo) MarshalJSON() ([]byte, error) + type ArtifactManager interface + Close func() error + CreateArtifact func(artifact ArtifactDescription) (ArtifactPath, error) + GetArtifactInfo func(path ArtifactPath) (ArtifactInfo, error) + ListArtifact func(filter ArtifactFilter, sorter ArtifactSorter, paginator ArtifactPagination) ([]ArtifactInfo, ListInfo, error) + PushArtifact func(artifact ArtifactDescription, ch chan ArtifactStatusChange) (ArtifactPath, error) + type ArtifactPagination struct + Forward bool + ID int64 + Limit int32 + type ArtifactPath string + func (m ArtifactPath) Validate(formats strfmt.Registry) error + type ArtifactSortBy string + const ArtifactSortByID + func (m ArtifactSortBy) Validate(formats strfmt.Registry) error + type ArtifactSorter struct + SortBy ArtifactSortBy + SortOrder SortOrder + func (m *ArtifactSorter) MarshalBinary() ([]byte, error) + func (m *ArtifactSorter) UnmarshalBinary(b []byte) error + func (m *ArtifactSorter) Validate(formats strfmt.Registry) error + type ArtifactStatus string + const ArtifactStatusDOWNLOADING + const ArtifactStatusFAILED + const ArtifactStatusPENDING + const ArtifactStatusREADY + func (m ArtifactStatus) Validate(formats strfmt.Registry) error + type ArtifactStatusChange struct + NewStatus ArtifactStatus + Path ArtifactPath + type ArtifactType string + const ArtifactTypeIMAGE + const ArtifactTypeRESULT + const ArtifactTypeTEST + const ArtifactTypeYAML + func (m ArtifactType) Validate(formats strfmt.Registry) error + type ArtifactURI strfmt.URI + func (m ArtifactURI) Validate(formats strfmt.Registry) error + type Boot struct + FailureRetry int + InputSequence string + Login string + Password string + Prompts []string + Timeout ValidPeriod + WaitPattern string + WaitTime ValidPeriod + type Config struct + Action Action + DeviceType string + JobName string + Priority Priority + Timeouts Timeouts + type Deploy struct + Images []ImageDefinition + PartitionLayout []PartitionDefinition + Timeout ValidPeriod + type Dryad struct + Addr net.Addr + Key rsa.PrivateKey + Username string + type DryadJobFilter struct + References []JobID + Statuses []DryadJobStatus + type DryadJobInfo struct + Job JobID + Status DryadJobStatus + type DryadJobManager interface + Cancel func(JobID) error + Create func(JobID, Dryad, Config, chan<- DryadJobStatusChange) error + List func(*DryadJobFilter) ([]DryadJobInfo, error) + type DryadJobStatus string + const DryadJobStatusBOOT + const DryadJobStatusDEPLOY + const DryadJobStatusFAIL + const DryadJobStatusNEW + const DryadJobStatusOK + const DryadJobStatusTEST + type DryadJobStatusChange DryadJobInfo + type ErrInvalidArgument string + func (err ErrInvalidArgument) Error() string + type ErrResponse struct + Message string + Type string + func (m *ErrResponse) MarshalBinary() ([]byte, error) + func (m *ErrResponse) UnmarshalBinary(b []byte) error + func (m *ErrResponse) Validate(formats strfmt.Registry) error + type ImageDefinition struct + ChecksumPath string + ChecksumType string + ChecksumURI string + Compression string + Path string + URI string + type JobFilter struct + CreatedAfter strfmt.DateTime + CreatedBefore strfmt.DateTime + Info []string + JobID []JobID + Name []string + Status []JobStatus + UpdatedAfter strfmt.DateTime + UpdatedBefore strfmt.DateTime + func (m *JobFilter) MarshalBinary() ([]byte, error) + func (m *JobFilter) UnmarshalBinary(b []byte) error + func (m *JobFilter) Validate(formats strfmt.Registry) error + type JobID uint64 + func (jid JobID) String() string + func (m JobID) Validate(formats strfmt.Registry) error + type JobInfo struct + Created strfmt.DateTime + Info string + JobID JobID + Name string + Status JobStatus + Updated strfmt.DateTime + func (m *JobInfo) MarshalBinary() ([]byte, error) + func (m *JobInfo) UnmarshalBinary(b []byte) error + func (m *JobInfo) Validate(formats strfmt.Registry) error + type JobManager interface + CancelJob func(JobID) error + CreateJob func(yaml []byte) (JobID, error) + ListJobs func(JobFilter, JobSorter, JobPagination) ([]JobInfo, ListInfo, error) + type JobPagination struct + Forward bool + JobID JobID + Limit int32 + type JobSortBy string + const JobSortByCreatedDate + const JobSortByID + const JobSortByJobStatus + const JobSortByUpdatedDate + func (m JobSortBy) Validate(formats strfmt.Registry) error + type JobSorter struct + SortBy JobSortBy + SortOrder SortOrder + func (m *JobSorter) MarshalBinary() ([]byte, error) + func (m *JobSorter) UnmarshalBinary(b []byte) error + func (m *JobSorter) Validate(formats strfmt.Registry) error + type JobStatus string + const JobStatusCANCELED + const JobStatusCOMPLETED + const JobStatusDOWNLOADING + const JobStatusFAILED + const JobStatusNEW + const JobStatusPARSING + const JobStatusRUNNING + const JobStatusWAITING + func (m JobStatus) Validate(formats strfmt.Registry) error + func (status JobStatus) ToInt() int + type ListInfo struct + RemainingRecords uint64 + TotalRecords uint64 + type LocalActionContainer Action + type LocalTestActionContainer struct + type Parser interface + ParseYaml func(input []byte) (*Config, error) + type PartitionDefinition struct + ID int + ImageName string + Size string + Type string + type Priority string + const HIGH + const LOW + const MEDIUM + type Pull struct + Alias string + Path string + Src string + Timeout ValidPeriod + type Push struct + Alias string + Dest string + Path string + Timeout ValidPeriod + URI string + type Run struct + Name string + Timeout ValidPeriod + type SortOrder string + const SortOrderAscending + const SortOrderDescending + func (m SortOrder) Validate(formats strfmt.Registry) error + type Test struct + FailureRetry int + Name string + TestCases []TestCase + Timeout ValidPeriod + type TestAction interface + type TestActionTab []LocalTestActionContainer + type TestActions []TestAction + func (t *TestActions) UnmarshalYAML(unmarshal func(interface{}) error) error + type TestCase struct + CaseName string + TestActions TestActions + type Timeouts struct + ActionTimeout ValidPeriod + JobTimeout ValidPeriod + type ValidPeriod time.Duration + func (t *ValidPeriod) UnmarshalYAML(unmarshal func(interface{}) error) error + type Version struct + API string + Server string + State string + func (m *Version) MarshalBinary() ([]byte, error) + func (m *Version) UnmarshalBinary(b []byte) error + func (m *Version) Validate(formats strfmt.Registry) error