Documentation ¶
Index ¶
- Constants
- func Apply(data []byte, args ...string) error
- func ApplyLabels(data []byte, labels string) ([]byte, error)
- func NewPodLogger(p *Provider) *podLogger
- type DeploymentController
- func (c *DeploymentController) Add(obj interface{}) error
- func (c *DeploymentController) Client() kubernetes.Interface
- func (c *DeploymentController) Delete(obj interface{}) error
- func (c *DeploymentController) ListOptions(opts *am.ListOptions)
- func (c *DeploymentController) Run()
- func (c *DeploymentController) Start() error
- func (c *DeploymentController) Stop() error
- func (c *DeploymentController) Update(prev, cur interface{}) error
- type Engine
- type EventController
- func (c *EventController) Add(obj interface{}) error
- func (c *EventController) Client() kubernetes.Interface
- func (c *EventController) Delete(obj interface{}) error
- func (c *EventController) ListOptions(opts *am.ListOptions)
- func (c *EventController) Run()
- func (c *EventController) Start() error
- func (c *EventController) Stop() error
- func (c *EventController) Update(prev, cur interface{}) error
- type NodeController
- func (c *NodeController) Add(obj interface{}) error
- func (c *NodeController) Client() kubernetes.Interface
- func (c *NodeController) Delete(obj interface{}) error
- func (c *NodeController) ListOptions(opts *am.ListOptions)
- func (c *NodeController) Run()
- func (c *NodeController) Start() error
- func (c *NodeController) Stop() error
- func (c *NodeController) Update(prev, cur interface{}) error
- type PodController
- func (c *PodController) Add(obj interface{}) error
- func (c *PodController) Client() kubernetes.Interface
- func (c *PodController) Delete(obj interface{}) error
- func (c *PodController) ListOptions(opts *am.ListOptions)
- func (c *PodController) Run()
- func (c *PodController) Start() error
- func (c *PodController) Stop() error
- func (c *PodController) Update(prev, cur interface{}) error
- type Provider
- func (p *Provider) AppCancel(name string) error
- func (p *Provider) AppCreate(name string, opts structs.AppCreateOptions) (*structs.App, error)
- func (p *Provider) AppDelete(name string) error
- func (p *Provider) AppGet(name string) (*structs.App, error)
- func (p *Provider) AppList() (structs.Apps, error)
- func (p *Provider) AppLogs(name string, opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) AppMetrics(name string, opts structs.MetricsOptions) (structs.Metrics, error)
- func (p *Provider) AppNamespace(app string) string
- func (p *Provider) AppUpdate(name string, opts structs.AppUpdateOptions) error
- func (p *Provider) Apply(namespace, name, version string, data []byte, labels string, timeout int32) error
- func (p *Provider) ApplyWait(namespace, name, version string, data []byte, labels string, timeout int32) error
- func (p *Provider) AtomWait(namespace, name string) error
- func (p *Provider) BuildCreate(app, url string, opts structs.BuildCreateOptions) (*structs.Build, error)
- func (p *Provider) BuildExport(app, id string, w io.Writer) error
- func (p *Provider) BuildGet(app, id string) (*structs.Build, error)
- func (p *Provider) BuildImport(app string, r io.Reader) (*structs.Build, error)
- func (p *Provider) BuildList(app string, opts structs.BuildListOptions) (structs.Builds, error)
- func (p *Provider) BuildLogs(app, id string, opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) BuildUpdate(app, id string, opts structs.BuildUpdateOptions) (*structs.Build, error)
- func (p *Provider) CapacityGet() (*structs.Capacity, error)
- func (p *Provider) CertificateApply(app, service string, port int, id string) error
- func (p *Provider) CertificateCreate(pub, key string, opts structs.CertificateCreateOptions) (*structs.Certificate, error)
- func (p *Provider) CertificateDelete(id string) error
- func (p *Provider) CertificateGenerate(domains []string) (*structs.Certificate, error)
- func (p *Provider) CertificateList() (structs.Certificates, error)
- func (p *Provider) Context() context.Context
- func (p *Provider) DeleteDB(resource string) error
- func (p *Provider) EventSend(action string, opts structs.EventSendOptions) error
- func (p *Provider) FilesDelete(app, pid string, files []string) error
- func (p *Provider) FilesDownload(app, pid, file string) (io.Reader, error)
- func (p *Provider) FilesUpload(app, pid string, r io.Reader) error
- func (p *Provider) Initialize(opts structs.ProviderOptions) error
- func (p *Provider) InstanceKeyroll() error
- func (p *Provider) InstanceList() (structs.Instances, error)
- func (p *Provider) InstanceShell(id string, rw io.ReadWriter, opts structs.InstanceShellOptions) (int, error)
- func (p *Provider) InstanceTerminate(id string) error
- func (p *Provider) IsDBSnapshotComplete(snapshot string) (bool, error)
- func (p *Provider) ObjectDelete(app, key string) error
- func (p *Provider) ObjectExists(app, key string) (bool, error)
- func (p *Provider) ObjectFetch(app, key string) (io.ReadCloser, error)
- func (p *Provider) ObjectList(app, prefix string) ([]string, error)
- func (p *Provider) ObjectStore(app, key string, r io.Reader, opts structs.ObjectStoreOptions) (*structs.Object, error)
- func (p *Provider) ProcessExec(app, pid, command string, rw io.ReadWriter, opts structs.ProcessExecOptions) (int, error)
- func (p *Provider) ProcessGet(app, pid string) (*structs.Process, error)
- func (p *Provider) ProcessList(app string, opts structs.ProcessListOptions) (structs.Processes, error)
- func (p *Provider) ProcessLogs(app, pid string, opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) ProcessRun(app, service string, opts structs.ProcessRunOptions) (*structs.Process, error)
- func (p *Provider) ProcessStop(app, pid string) error
- func (p *Provider) ProcessWait(app, pid string) (int, error)
- func (p *Provider) Proxy(host string, port int, rw io.ReadWriter, opts structs.ProxyOptions) error
- func (p *Provider) RegistryAdd(server, username, password string) (*structs.Registry, error)
- func (p *Provider) RegistryList() (structs.Registries, error)
- func (p *Provider) RegistryRemove(server string) error
- func (p *Provider) ReleaseCreate(app string, opts structs.ReleaseCreateOptions) (*structs.Release, error)
- func (p *Provider) ReleaseGet(app, id string) (*structs.Release, error)
- func (p *Provider) ReleaseList(app string, opts structs.ReleaseListOptions) (structs.Releases, error)
- func (p *Provider) ReleasePromote(app, id string, opts structs.ReleasePromoteOptions) error
- func (p *Provider) RenderTemplate(name string, params map[string]interface{}) ([]byte, error)
- func (p *Provider) ResourceGet(app, name string) (*structs.Resource, error)
- func (p *Provider) ResourceList(app string) (structs.Resources, error)
- func (p *Provider) ServiceList(app string) (structs.Services, error)
- func (p *Provider) ServiceMetrics(app, name string, opts structs.MetricsOptions) (structs.Metrics, error)
- func (p *Provider) ServiceRestart(app, name string) error
- func (p *Provider) ServiceUpdate(app, name string, opts structs.ServiceUpdateOptions) error
- func (p *Provider) SetDBDeletionProtectionAndCreateSnapShot(app, resource, snapshot string) (string, error)
- func (p *Provider) Sync(name string) error
- func (p *Provider) SyncInstancesIpInSecurityGroup() error
- func (p *Provider) SystemGet() (*structs.System, error)
- func (p *Provider) SystemInstall(w io.Writer, opts structs.SystemInstallOptions) (string, error)
- func (p *Provider) SystemJwtSignKey() (string, error)
- func (p *Provider) SystemJwtSignKeyRotate() (string, error)
- func (p *Provider) SystemLogs(opts structs.LogsOptions) (io.ReadCloser, error)
- func (p *Provider) SystemMetrics(opts structs.MetricsOptions) (structs.Metrics, error)
- func (p *Provider) SystemProcesses(opts structs.SystemProcessesOptions) (structs.Processes, error)
- func (p *Provider) SystemReleases() (structs.Releases, error)
- func (p *Provider) SystemResourceCreate(kind string, opts structs.ResourceCreateOptions) (*structs.Resource, error)
- func (p *Provider) SystemResourceDelete(name string) error
- func (p *Provider) SystemResourceGet(name string) (*structs.Resource, error)
- func (p *Provider) SystemResourceLink(name, app string) (*structs.Resource, error)
- func (p *Provider) SystemResourceList() (structs.Resources, error)
- func (p *Provider) SystemResourceTypes() (structs.ResourceTypes, error)
- func (p *Provider) SystemResourceUnlink(name, app string) (*structs.Resource, error)
- func (p *Provider) SystemResourceUpdate(name string, opts structs.ResourceUpdateOptions) (*structs.Resource, error)
- func (p *Provider) SystemTemplate(version string) ([]byte, error)
- func (p *Provider) SystemTemplateLocal(provider, version string) ([]byte, error)
- func (p *Provider) SystemTemplateRemote(provider, version string) ([]byte, error)
- func (p *Provider) SystemUninstall(name string, w io.Writer, opts structs.SystemUninstallOptions) error
- func (p *Provider) SystemUpdate(opts structs.SystemUpdateOptions) error
- func (p *Provider) WithContext(ctx context.Context) structs.Provider
- func (p *Provider) Workers() error
Constants ¶
View Source
const ( ScannerStartSize = 4096 ScannerMaxSize = 20 * 1024 * 1024 )
View Source
const (
BuildMax = 30
)
Variables ¶
This section is empty.
Functions ¶
func NewPodLogger ¶
func NewPodLogger(p *Provider) *podLogger
Types ¶
type DeploymentController ¶
type DeploymentController struct { Controller *kctl.Controller Provider *Provider }
func NewDeploymentController ¶
func NewDeploymentController(p *Provider) (*DeploymentController, error)
func (*DeploymentController) Add ¶
func (c *DeploymentController) Add(obj interface{}) error
func (*DeploymentController) Client ¶
func (c *DeploymentController) Client() kubernetes.Interface
func (*DeploymentController) Delete ¶
func (c *DeploymentController) Delete(obj interface{}) error
func (*DeploymentController) ListOptions ¶
func (c *DeploymentController) ListOptions(opts *am.ListOptions)
func (*DeploymentController) Run ¶
func (c *DeploymentController) Run()
func (*DeploymentController) Start ¶
func (c *DeploymentController) Start() error
func (*DeploymentController) Stop ¶
func (c *DeploymentController) Stop() error
func (*DeploymentController) Update ¶
func (c *DeploymentController) Update(prev, cur interface{}) error
type Engine ¶
type Engine interface { AppIdles(app string) (bool, error) AppStatus(app string) (string, error) Log(app, stream string, ts time.Time, message string) error ReleasePromote(app, id string, opts structs.ReleasePromoteOptions) error RepositoryAuth(app string) (string, string, error) RepositoryHost(app string) (string, bool, error) ResourceRender(app string, r manifest.Resource) ([]byte, error) Resolver() (string, error) ServiceHost(app string, s manifest.Service) string // SystemAnnotations(service string) map[string]string SystemHost() string SystemStatus() (string, error) }
type EventController ¶
type EventController struct { Controller *kctl.Controller Provider *Provider // contains filtered or unexported fields }
func NewEventController ¶
func NewEventController(p *Provider) (*EventController, error)
func (*EventController) Add ¶
func (c *EventController) Add(obj interface{}) error
func (*EventController) Client ¶
func (c *EventController) Client() kubernetes.Interface
func (*EventController) Delete ¶
func (c *EventController) Delete(obj interface{}) error
func (*EventController) ListOptions ¶
func (c *EventController) ListOptions(opts *am.ListOptions)
func (*EventController) Run ¶
func (c *EventController) Run()
func (*EventController) Start ¶
func (c *EventController) Start() error
func (*EventController) Stop ¶
func (c *EventController) Stop() error
func (*EventController) Update ¶
func (c *EventController) Update(prev, cur interface{}) error
type NodeController ¶
type NodeController struct { Controller *kctl.Controller Provider *Provider }
func NewNodeController ¶
func NewNodeController(p *Provider) (*NodeController, error)
func (*NodeController) Add ¶
func (c *NodeController) Add(obj interface{}) error
func (*NodeController) Client ¶
func (c *NodeController) Client() kubernetes.Interface
func (*NodeController) Delete ¶
func (c *NodeController) Delete(obj interface{}) error
func (*NodeController) ListOptions ¶
func (c *NodeController) ListOptions(opts *am.ListOptions)
func (*NodeController) Run ¶
func (c *NodeController) Run()
func (*NodeController) Start ¶
func (c *NodeController) Start() error
func (*NodeController) Stop ¶
func (c *NodeController) Stop() error
func (*NodeController) Update ¶
func (c *NodeController) Update(prev, cur interface{}) error
type PodController ¶
type PodController struct { Controller *kctl.Controller Provider *Provider // contains filtered or unexported fields }
func NewPodController ¶
func NewPodController(p *Provider) (*PodController, error)
func (*PodController) Add ¶
func (c *PodController) Add(obj interface{}) error
func (*PodController) Client ¶
func (c *PodController) Client() kubernetes.Interface
func (*PodController) Delete ¶
func (c *PodController) Delete(obj interface{}) error
func (*PodController) ListOptions ¶
func (c *PodController) ListOptions(opts *am.ListOptions)
func (*PodController) Run ¶
func (c *PodController) Run()
func (*PodController) Start ¶
func (c *PodController) Start() error
func (*PodController) Stop ¶
func (c *PodController) Stop() error
func (*PodController) Update ¶
func (c *PodController) Update(prev, cur interface{}) error
type Provider ¶
type Provider struct { Config *rest.Config Cluster kubernetes.Interface ID string Image string Engine Engine Metrics metrics.Interface Password string Provider string Rack string Socket string Storage string Version string // contains filtered or unexported fields }
func (*Provider) AppLogs ¶
func (p *Provider) AppLogs(name string, opts structs.LogsOptions) (io.ReadCloser, error)
func (*Provider) AppMetrics ¶
func (*Provider) AppNamespace ¶
func (*Provider) AppUpdate ¶
func (p *Provider) AppUpdate(name string, opts structs.AppUpdateOptions) error
func (*Provider) BuildCreate ¶
func (*Provider) BuildImport ¶
func (*Provider) BuildLogs ¶
func (p *Provider) BuildLogs(app, id string, opts structs.LogsOptions) (io.ReadCloser, error)
func (*Provider) BuildUpdate ¶
func (*Provider) CertificateApply ¶
func (*Provider) CertificateCreate ¶
func (p *Provider) CertificateCreate(pub, key string, opts structs.CertificateCreateOptions) (*structs.Certificate, error)
func (*Provider) CertificateDelete ¶
func (*Provider) CertificateGenerate ¶
func (p *Provider) CertificateGenerate(domains []string) (*structs.Certificate, error)
func (*Provider) CertificateList ¶
func (p *Provider) CertificateList() (structs.Certificates, error)
func (*Provider) EventSend ¶
func (p *Provider) EventSend(action string, opts structs.EventSendOptions) error
func (*Provider) FilesDelete ¶
func (*Provider) FilesDownload ¶
func (*Provider) Initialize ¶
func (p *Provider) Initialize(opts structs.ProviderOptions) error
func (*Provider) InstanceKeyroll ¶
func (*Provider) InstanceShell ¶
func (p *Provider) InstanceShell(id string, rw io.ReadWriter, opts structs.InstanceShellOptions) (int, error)
func (*Provider) InstanceTerminate ¶
func (*Provider) IsDBSnapshotComplete ¶
func (*Provider) ObjectDelete ¶
func (*Provider) ObjectFetch ¶
func (p *Provider) ObjectFetch(app, key string) (io.ReadCloser, error)
func (*Provider) ObjectStore ¶
func (*Provider) ProcessExec ¶
func (p *Provider) ProcessExec(app, pid, command string, rw io.ReadWriter, opts structs.ProcessExecOptions) (int, error)
func (*Provider) ProcessGet ¶
func (*Provider) ProcessList ¶
func (*Provider) ProcessLogs ¶
func (p *Provider) ProcessLogs(app, pid string, opts structs.LogsOptions) (io.ReadCloser, error)
func (*Provider) ProcessRun ¶
func (*Provider) ProcessStop ¶
func (*Provider) Proxy ¶
func (p *Provider) Proxy(host string, port int, rw io.ReadWriter, opts structs.ProxyOptions) error
func (*Provider) RegistryAdd ¶
func (*Provider) RegistryList ¶
func (p *Provider) RegistryList() (structs.Registries, error)
func (*Provider) RegistryRemove ¶
func (*Provider) ReleaseCreate ¶
func (*Provider) ReleaseGet ¶
func (*Provider) ReleaseList ¶
func (*Provider) ReleasePromote ¶
func (p *Provider) ReleasePromote(app, id string, opts structs.ReleasePromoteOptions) error
func (*Provider) RenderTemplate ¶
func (*Provider) ResourceGet ¶
func (*Provider) ResourceList ¶
func (*Provider) ServiceList ¶
TODO finish
func (*Provider) ServiceMetrics ¶
func (*Provider) ServiceRestart ¶
func (*Provider) ServiceUpdate ¶
func (p *Provider) ServiceUpdate(app, name string, opts structs.ServiceUpdateOptions) error
func (*Provider) SetDBDeletionProtectionAndCreateSnapShot ¶
func (*Provider) SyncInstancesIpInSecurityGroup ¶
func (*Provider) SystemInstall ¶
func (*Provider) SystemJwtSignKey ¶
func (*Provider) SystemJwtSignKeyRotate ¶
func (*Provider) SystemLogs ¶
func (p *Provider) SystemLogs(opts structs.LogsOptions) (io.ReadCloser, error)
func (*Provider) SystemMetrics ¶
func (*Provider) SystemProcesses ¶
func (*Provider) SystemResourceCreate ¶
func (*Provider) SystemResourceDelete ¶
func (*Provider) SystemResourceGet ¶
func (*Provider) SystemResourceLink ¶
func (*Provider) SystemResourceList ¶
func (*Provider) SystemResourceTypes ¶
func (p *Provider) SystemResourceTypes() (structs.ResourceTypes, error)
func (*Provider) SystemResourceUnlink ¶
func (*Provider) SystemResourceUpdate ¶
func (*Provider) SystemTemplateLocal ¶
func (*Provider) SystemTemplateRemote ¶
func (*Provider) SystemUninstall ¶
func (*Provider) SystemUpdate ¶
func (p *Provider) SystemUpdate(opts structs.SystemUpdateOptions) error
Source Files ¶
- app.go
- apply.go
- build.go
- capacity.go
- certificate.go
- controller_deployment.go
- controller_event.go
- controller_node.go
- controller_pod.go
- event.go
- file.go
- helpers.go
- instance.go
- k8s.go
- log.go
- object.go
- process.go
- proxy.go
- registry.go
- release.go
- resource.go
- service.go
- snapshot.go
- system.go
- template.go
- workers.go
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
apis/convox/v1
+groupName=convox.com
|
+groupName=convox.com |
client/clientset/versioned
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
client/clientset/versioned/typed/convox/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
client/clientset/versioned/typed/convox/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
Click to show internal directories.
Click to hide internal directories.