Documentation
¶
Index ¶
- Constants
- func NewJwtToken(account string, scope *Scopes, service, issuer, keypath string) (*jwtToken, error)
- type AccessItem
- type AccessItems
- type AzureBlobStorage
- type Build
- func (b *Build) MarkAsBuilding(step, message string)
- func (b *Build) MarkAsCanceled(step, message string)
- func (b *Build) MarkAsDone(step, message string)
- func (b *Build) MarkAsError(step, message string)
- func (b *Build) MarkAsPreparing(step, message string)
- func (b *Build) MarkAsUploading(step, message string)
- func (b Build) NewBuildManifest() *Task
- type BuildCommit
- type BuildConfig
- type BuildCreateOptions
- type BuildImage
- type BuildInfo
- type BuildList
- type BuildListOptions
- type BuildManifestConfig
- type BuildManifestImage
- type BuildManifestSource
- type BuildMeta
- type BuildSource
- type BuildSpec
- type BuildStatus
- type BuildStep
- type BuildUpdateStatusOptions
- type Builder
- type BuilderCreateOptions
- type BuilderInfo
- type BuilderMeta
- type BuilderResources
- type BuilderSpec
- type BuilderSpecNetwork
- type BuilderStatus
- type BuilderUpdateOptions
- type Event
- type Image
- type ImageCreateOptions
- type ImageListOptions
- type ImageMeta
- type ImageRemoveOptions
- type ImageSource
- type ImageStats
- type ImageStatus
- type ImageTag
- type ImageTagCreateOptions
- type ImageTagSpec
- type ImageUpdateOptions
- type Meta
- type Process
- type Registry
- type RegistryList
- type RegistryMap
- type RegistryMeta
- type RegistryResources
- type RegistryStatus
- type RegistryUser
- type SSL
- type Scope
- type Scopes
- type Source
- type SourceJobConfig
- type StorageEvent
- type System
- type SystemUpdateControllerLastEventOptions
- type SystemUpdateControllerOptions
- type SystemUpdateOptions
- type Task
- type VCSBranch
- type VCSBranchList
- type VCSCommit
- type VCSRepo
- type VCSRepoList
Constants ¶
View Source
const ( BuildStatusQueued = "queued" BuildStatusPreparing = "preparing" BuildStatusBuilding = "building" BuildStatusUploading = "uploading" BuildStatusSuccess = "success" BuildStatusFailed = "failed" BuildStatusCanceled = "canceled" )
Statuses
View Source
const ( BuildStepFetch = "fetch" BuildStepBuild = "build" BuildStepUpload = "upload" BuildStepDone = "done" )
STEPS
View Source
const ( DEFAULT_MIN_WORKERS = 1 DEFAULT_MIN_WORKER_CPU = 50000000 // 0.5 vCPU DEFAULT_MIN_WORKER_Storage = 5 DEFAULT_MIN_WORKER_MEMORY = 256 * 1024 * 1024 )
View Source
const ( StorageInsertAction = "insert" StorageUpdateAction = "update" StorageDeleteAction = "delete" )
View Source
const ( ImageDefaultTag = "latest" ImageDefaultDockerfilePath = "./DockerFile" ImageDefaultContextLocation = "/" )
View Source
const ( TypeSourceGit = "git" TypeSourceRegistry = "registry" TypeSourceImage = "image" )
View Source
const BitbucketHost = "bitbucket.org"
View Source
const BitbucketType = "bitbucket"
View Source
const DockerHost = "index.docker.io"
View Source
const EmptyString = ""
View Source
const EmptyStringSlice = "[]"
View Source
const GithubHost = "github.com"
View Source
const GithubType = "github"
View Source
const GitlabHost = "gitlab.com"
View Source
const GitlabType = "gitlab"
View Source
const KindController = "controller"
View Source
const SourceDefaultBranch = "master"
View Source
const StateCancel = "cancel"
View Source
const StateCreated = "created"
View Source
const StateDestroy = "destroy"
View Source
const StateDestroyed = "destroyed"
View Source
const StateError = "error"
View Source
const StateExited = "exited"
View Source
const StateInitialized = "initialized"
View Source
const StateProvision = "provision"
View Source
const StatePull = "pull"
View Source
const StateReady = "ready"
View Source
const StateRunning = "running"
View Source
const StateStarted = "started"
View Source
const StateStarting = "starting"
View Source
const StateStopped = "stopped"
View Source
const StateWarning = "warning"
View Source
const StepInitialized = "initialized"
View Source
const StepPull = "pull"
View Source
const StepReady = "ready"
Variables ¶
This section is empty.
Functions ¶
func NewJwtToken ¶
SERVICE - The name of the token issuer. The issuer inserts this into the token so it must match the value configured for the issuer. ISSUER - The absolute path to the root certificate bundle. This bundle contains the public part of the certificates used to sign authentication tokens. KEYPATH - The absolute path to the root certificate bundle. This bundle contains the public part of the certificates used to sign authentication tokens.
Types ¶
type AccessItem ¶
type AccessItems ¶
type AccessItems []AccessItem
type AzureBlobStorage ¶
type Build ¶
type Build struct { Meta BuildMeta `json:"meta"` Status BuildStatus `json:"status"` Spec BuildSpec `json:"spec"` }
func (*Build) MarkAsBuilding ¶
func (*Build) MarkAsCanceled ¶
func (*Build) MarkAsDone ¶
func (*Build) MarkAsError ¶
func (*Build) MarkAsPreparing ¶
func (*Build) MarkAsUploading ¶
func (Build) NewBuildManifest ¶
type BuildCommit ¶
type BuildConfig ¶
type BuildCreateOptions ¶
type BuildCreateOptions struct { Source Source `json:"source"` Image struct { ID string `json:"id"` Owner string `json:"owner"` Name string `json:"name"` Tag string `json:"tag"` Auth string `json:"auth"` } `json:"source"` Spec struct { DockerFile string `json:"dockerfile"` Context string `json:"context"` Command string `json:"command"` Workdir string `json:"workdir"` EnvVars []string `json:"environments"` } Labels map[string]string `json:"labels"` }
type BuildImage ¶
type BuildListOptions ¶
type BuildManifestConfig ¶
type BuildManifestConfig struct {
BuildConfig
}
type BuildManifestImage ¶
type BuildManifestSource ¶
type BuildSource ¶
type BuildSource struct { Source Commit *BuildCommit `json:"commit"` }
type BuildSpec ¶
type BuildSpec struct { Image BuildImage `json:"image"` Source BuildSource `json:"source"` Config BuildConfig `json:"config"` }
type BuildStatus ¶
type BuildStatus struct { Size int64 `json:"size"` Step string `json:"step"` Status string `json:"status"` Message string `json:"message"` Processing bool `json:"processing"` Done bool `json:"done"` Error bool `json:"error"` Canceled bool `json:"canceled"` Finished time.Time `json:"finished"` Started time.Time `json:"started"` }
type Builder ¶
type Builder struct { Meta BuilderMeta `json:"meta"` Status BuilderStatus `json:"status"` Spec BuilderSpec `json:"spec"` }
type BuilderCreateOptions ¶
type BuilderInfo ¶
type BuilderMeta ¶
type BuilderMeta struct { Meta BuilderInfo }
type BuilderResources ¶
type BuilderSpec ¶
type BuilderSpec struct {
Network BuilderSpecNetwork `json:"network"`
}
type BuilderSpecNetwork ¶
type BuilderStatus ¶
type BuilderStatus struct { Insecure bool `json:"insecure"` Online bool `json:"online"` TLS bool `json:"tls"` // Builder Capacity Capacity BuilderResources `json:"capacity"` // Builder Allocated Allocated BuilderResources `json:"allocated"` // Builder Usage Usage BuilderResources `json:"usage"` }
type BuilderUpdateOptions ¶
type BuilderUpdateOptions struct { Hostname *string `json:"hostname"` IP *string `json:"ip"` Port *uint16 `json:"port"` Online *bool `json:"online"` TLS *bool `json:"tls"` SSL *SSL `json:"ssl"` Allocated *BuilderResources `json:"allocated"` Capacity *BuilderResources `json:"capacity"` Usage *BuilderResources `json:"usage"` }
type Event ¶
type Event struct { Name string `json:"event"` Payload json.RawMessage `json:"payload"` }
type Image ¶
type Image struct { Meta ImageMeta `json:"meta"` Status ImageStatus `json:"status"` TagList map[string]*ImageTag `json:"tags"` }
type ImageCreateOptions ¶
type ImageListOptions ¶
type ImageListOptions struct {
Owner string `json:"owner"`
}
type ImageRemoveOptions ¶
type ImageRemoveOptions struct {
Force *bool `json:"force"`
}
type ImageSource ¶
type ImageStats ¶
type ImageStats struct { // Image stats pulls quantity PullsQuantity int64 `json:"pulls_quantity"` // Image stats builds quantity BuildsQuantity int64 `json:"builds_quantity"` // Image stats stars quantity StarsQuantity int64 `json:"stars_quantity"` // Image stats views quantity ViewsQuantity int64 `json:"views_quantity"` }
type ImageStatus ¶
type ImageStatus struct { Stats ImageStats `json:"stats"` Private bool `json:"private"` }
type ImageTagCreateOptions ¶
type ImageTagCreateOptions struct {
Name string `json:"name"`
}
type ImageTagSpec ¶
type ImageUpdateOptions ¶
type Meta ¶
type Meta struct { ID string `json:"id,omitempty"` // Meta name Name string `json:"name,omitempty"` // Meta description Description string `json:"description,omitempty"` // Meta labels Labels map[string]string `json:"labels,omitempty"` // Meta created time Created time.Time `json:"created,omitempty"` // Meta updated time Updated time.Time `json:"updated,omitempty"` }
func (*Meta) SetDefault ¶
func (m *Meta) SetDefault()
type Registry ¶
type Registry struct { Meta RegistryMeta `json:"meta"` Status RegistryStatus `json:"status"` }
type RegistryList ¶
type RegistryList []*Registry
type RegistryMap ¶
type RegistryMeta ¶
type RegistryMeta struct {
Meta
}
type RegistryResources ¶
type RegistryStatus ¶
type RegistryStatus struct { TLS bool `json:"tls"` Capacity RegistryResources `json:"capacity"` Allocated RegistryResources `json:"allocated"` }
type RegistryUser ¶
type SourceJobConfig ¶
type SourceJobConfig struct { Hub string `json:"hub"` Owner string `json:"owner"` Name string `json:"name"` Branch string `json:"branch"` // Link to source code in tar TarUri string `json:"tar_uri"` // Directory where source are unpacked (Ex: github => ./owner/repo/ref) WorkDir string `json:"dir"` }
type StorageEvent ¶
type SystemUpdateOptions ¶
type Task ¶
type Task struct { Meta struct { ID string `json:"id"` } `json:"meta"` Spec struct { Source BuildManifestSource `json:"source"` Image BuildManifestImage `json:"image"` Config BuildManifestConfig `json:"config"` } `json:"spec"` }
type VCSBranchList ¶
type VCSBranchList []VCSBranch
type VCSRepoList ¶
type VCSRepoList []VCSRepo
Click to show internal directories.
Click to hide internal directories.