Documentation
¶
Index ¶
- Constants
- Variables
- type Build
- type BuildImage
- type BuildList
- type BuildSource
- type BuildStatus
- type BuildStep
- type ContainerConfig
- type EnvVar
- type GitSourceCommit
- type Hook
- type HookList
- type Image
- type ImageList
- type ImageTag
- type Port
- type Profile
- type Project
- type ProjectList
- type Service
- type ServiceList
- type ServiceUpdateConfig
- type Session
- type Template
- type TemplateList
- type User
- type Volume
- type VolumeList
Constants ¶
View Source
const ( //BuildStepCreate - The first step after build creating BuildStepCreate = "create" //BuildStepFetch - Fetch sources step BuildStepFetch = "fetch" //BuildStepBuild - Build executing step BuildStepBuild = "build" //BuildStepUpload - Upload docker image step BuildStepUpload = "upload" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { // Build number, incremented automatically ID string `json:"id" gorethink:"id,omitempty"` // Build number, incremented automatically User string `json:"user" gorethink:"id,omitempty"` // Build executing status Status BuildStatus `json:"status" gorethink:"status,omitempty"` // Build sources used for build Source BuildSource `json:"source" gorethink:"source,omitempty"` // Build image output information Image BuildImage `json:"image" gorethink:"image,omitempty"` // Build created time Created time.Time `json:"created" gorethink:"created,omitempty"` // Build updated time Updated time.Time `json:"updated" gorethink:"updated,omitempty"` }
type BuildImage ¶
type BuildSource ¶
type BuildSource struct { // Build sources hub Hub string `json:"hub" gorethink:"hub,omitempty"` // Build sources owner Owner string `json:"owner" gorethink:"owner,omitempty"` // Build sources repo Repo string `json:"repo" gorethink:"repo,omitempty"` // Build source tag (branch, tag) Tag string `json:"tag" gorethink:"tag,omitempty"` // Build commit information Commit GitSourceCommit `json:"commit" gorethink:"commit,omitempty"` }
type BuildStatus ¶
type BuildStatus struct { // Build current step Step BuildStep `json:"step" gorethink:"step,omitempty"` // Is build cancelled Cancelled bool `json:"cancelled" gorethink:"cancelled,omitempty"` // Build executing message Message string `json:"message" gorethink:"message,omitempty"` // Build error information Error string `json:"error" gorethink:"error,omitempty"` // Build status updated time Updated time.Time `json:"updated" gorethink:"updated,omitempty"` }
type ContainerConfig ¶
type ContainerConfig struct { Image string `json:"image" yaml:"image"` Name string `json:"name" yaml:"name"` WorkingDir string `json:"workdir" yaml:"workdir"` Command []string `json:"command" yaml:"command"` Args []string `json:"args" yaml:"args"` Env []EnvVar `json:"env" yaml:"env"` Ports []Port `json:"ports" yaml:"ports"` }
type GitSourceCommit ¶
type GitSourceCommit struct { // Git commit information hash Commit string `json:"commit" gorethink:"id,omitempty"` // Git committer gravatar Committer string `json:"committer" gorethink:"id,omitempty"` // Git committer email Author string `json:"author" gorethink:"id,omitempty"` // Git commit message Message string `json:"message" gorethink:"id,omitempty"` }
type Hook ¶
type Hook struct { // Hook uuid, incremented automatically ID string `json:"id" gorethink:"id,omitempty"` // Hook owner User string `json:"user" gorethink:"user,omitempty"` // Hook token Token string `json:"token" gorethink:"token,omitempty"` // Hook image to build Image string `json:"image" gorethink:"name,omitempty"` // Hook service to build images Service string `json:"service" gorethink:"name,omitempty"` // Hook created time Created time.Time `json:"created" gorethink:"created,omitempty"` // Hook updated time Updated time.Time `json:"updated" gorethink:"updated,omitempty"` }
type Image ¶
type Image struct { // Image uuid, incremented automatically ID string `json:"id" gorethink:"id,omitempty"` // Image user User string `json:"user" gorethink:"user,omitempty"` // Image name Name string `json:"name" gorethink:"name,omitempty"` // Image tag lists Tags map[string]ImageTag `json:"tags" gorethink:"tags,omitempty"` // Image created time Created time.Time `json:"created" gorethink:"created,omitempty"` // Image updated time Updated time.Time `json:"updated" gorethink:"updated,omitempty"` }
type Project ¶
type Project struct { // Project uuid, incremented automatically ID string `json:"id" gorethink:"id,omitempty"` // Project user User string `json:"user" gorethink:"user,omitempty"` // Project name Name string `json:"name" gorethink:"name,omitempty"` // Project description Description string `json:"description" gorethink:"description,omitempty"` // Project created time Created time.Time `json:"created" gorethink:"created,omitempty"` // Project updated time Updated time.Time `json:"updated" gorethink:"updated,omitempty"` }
type ProjectList ¶
type ProjectList []Project
func (*ProjectList) DrawTable ¶
func (projects *ProjectList) DrawTable()
type Service ¶
type Service struct { // Service uuid, incremented automatically ID string `json:"id" gorethink:"id,omitempty"` // Service user User string `json:"user" gorethink:"user,omitempty"` // Service project Project string `json:"project" gorethink:"project,omitempty"` // Service image Image string `json:"image" gorethink:"image,omitempty"` // Service name Name string `json:"name" gorethink:"name,omitempty"` // Service description Description string `json:"description" gorethink:"description,omitempty"` // Service spec Spec *service.Service `json:"spec,omitempty" gorethink:"-"` // Service created time Created time.Time `json:"created" gorethink:"created,omitempty"` // Service updated time Updated time.Time `json:"updated" gorethink:"updated,omitempty"` }
func (*Service) GetConfig ¶
func (s *Service) GetConfig() *ServiceUpdateConfig
type ServiceList ¶
type ServiceList []Service
func (*ServiceList) DrawTable ¶
func (s *ServiceList) DrawTable(projectName string)
type ServiceUpdateConfig ¶
type ServiceUpdateConfig struct { Description string `json:"description" yaml:"description"` Replicas int32 `json:"scale" yaml:"scale"` Containers []ContainerConfig `json:"containers" yaml:"containers"` }
func (ServiceUpdateConfig) CreateServiceConfig ¶
func (s ServiceUpdateConfig) CreateServiceConfig() *service.ServiceConfig
type Session ¶
type Session struct { Uid string // session user id Oid string // session organization id Username string // session username Email string // session email }
func NewSession ¶
Generate new Session pointer structure
type Template ¶
type Template struct { Secrets []v1.Secret `json:"secrets,omitempty"` PersistentVolumes []v1.PersistentVolume `json:"persistent_volumes,omitempty"` PersistentVolumeClaims []v1.PersistentVolumeClaim `json:"persistent_volume_claims,omitempty"` ServiceAccounts []v1.ServiceAccount `json:"service_accounts,omitempty"` Services []v1.Service `json:"services,omitempty"` ReplicationControllers []v1.ReplicationController `json:"replication_controllers,omitempty"` Pods []v1.Pod `json:"pods,omitempty"` Deployments []v1beta1.Deployment `json:"deployments,omitempty"` DaemonSets []v1beta1.DaemonSet `json:"daemon_sets,omitempty"` Jobs []v1beta1.Job `json:"jobs,omitempty"` Ingresses []v1beta1.Ingress `json:"ingresses,omitempty"` }
type TemplateList ¶
func (*TemplateList) DrawTable ¶
func (tpl *TemplateList) DrawTable()
type User ¶
type User struct { ID string `json:"id" gorethink:"id,omitempty"` Username string `json:"username" gorethink:"username,omitempty"` Email string `json:"email" gorethink:"email,omitempty"` Gravatar string `json:"gravatar" gorethink:"gravatar,omitempty"` Balance float32 `json:"balance" gorethink:"balance,omitempty"` Organization bool `json:"organization" gorethink:"organization,omitempty"` Created time.Time `json:"created" gorethink:"created,omitempty"` Updated time.Time `json:"updated" gorethink:"updated,omitempty"` Password string `json:"-" gorethink:"password,omitempty,omitempty"` Salt string `json:"-" gorethink:"salt,omitempty,omitempty"` Profile Profile `json:"profile" gorethink:"profile,omitempty"` }
type Volume ¶
type Volume struct { // Volume uuid, incremented automatically ID string `json:"id" gorethink:"id,omitempty"` // Volume uuid, incremented automatically Project string `json:"project" gorethink:"project,omitempty"` // Volume user User string `json:"user" gorethink:"user,omitempty"` // Volume name Name string `json:"name" gorethink:"name,omitempty"` // Volume tag lists Created time.Time `json:"created" gorethink:"created,omitempty"` // Volume updated time Updated time.Time `json:"updated" gorethink:"updated,omitempty"` }
type VolumeList ¶
type VolumeList []Volume
Click to show internal directories.
Click to hide internal directories.