Documentation
¶
Index ¶
- Variables
- type AppDeleteOption
- type Controller
- func (c *Controller) AddTCPProxy(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) AddVolume(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) Create(ctx context.Context, actor string, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) CreateFromTemplate(ctx context.Context, actor string, tenant *types.Tenant, ...) ([]*types.Application, error)
- func (c *Controller) CreateGithub(ctx context.Context, actor string, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) CreateRegistry(ctx context.Context, actor string, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) CreateWithoutTx(ctx context.Context, dto *createOrUpdateDto) (*types.Application, error)
- func (c *Controller) DeleteDomain(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) DeleteTCPProxy(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) DeleteVolume(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) Deploy(ctx context.Context, actor string, action enum.TriggerAction, ...) (*types.Deployment, error)
- func (c *Controller) DetachVolume(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) GenerateDomain(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) Get(ctx context.Context, tenantID, projectID, environmentID, applicationUID int64) (*types.Application, error)
- func (c *Controller) GetDefaultGitIn() *types.ApplicationInput
- func (c *Controller) GetGitpublicIn(ctx context.Context, repoURL string) (*types.ApplicationInput, error)
- func (c *Controller) GetLogs(ctx context.Context, app *types.Application) ([]*types.Artifact, error)
- func (c *Controller) GetRegistryIn(image string, networkIn *types.NetworkInput) *types.ApplicationInput
- func (c *Controller) GetRestrictions(ctx context.Context, tenant *types.Tenant) *types.ApplicationRestrction
- func (c *Controller) List(ctx context.Context, tenantID, projectID, environmentID int64) ([]*types.Application, error)
- func (c *Controller) NeedsDeployment(ctx context.Context, application *types.Application) (*types.Application, error)
- func (c *Controller) Redeploy(ctx context.Context, actor string, application *types.Application) (*types.Deployment, error)
- func (c *Controller) SoftDelete(ctx context.Context, app *types.Application, opts *AppDeleteOption) error
- func (c *Controller) SoftDeleteInEnvironment(ctx context.Context, envID, now int64) error
- func (c *Controller) SuggestFQDN(ctx context.Context, app *types.Application) (string, error)
- func (c *Controller) TailLog(ctx context.Context, app *types.Application) (<-chan *types.ArtifactLogLine, <-chan error, error)
- func (c *Controller) Update(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) UpdateDomain(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) UpdatePrivateNetwork(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- func (c *Controller) UpdateVolume(ctx context.Context, session *auth.Session, tenant *types.Tenant, ...) (*types.Application, error)
- type PrivateNetworkInput
- type TCPProxyInput
- type UpdateDomainInput
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type AppDeleteOption ¶
type AppDeleteOption struct {
Name string `json:"name"`
Confirm string `json:"confirm"`
Volume bool `json:"volume,string"`
}
func DefaultDeleteOption ¶
func DefaultDeleteOption(app *types.Application) *AppDeleteOption
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( tx dbtx.Transactor, configSvc *config.Service, schemaSvc *schema.Service, specSvc *spec.Service, applicationStore store.ApplicationStore, serverCtrl *server.Controller, varCtrl *variable.Controller, gitPublicCtrl *gitpublic.Controller, volumeCtrl *volume.Controller, triggerer triggerer.Triggerer, canceler canceler.Canceler, manager manager.ManagerFactory, ) *Controller
func ProvideController ¶
func ProvideController( tx dbtx.Transactor, configSvc *config.Service, schemaSvc *schema.Service, specSvc *spec.Service, applicationStore store.ApplicationStore, serverCtrl *server.Controller, varCtrl *variable.Controller, gitPublicCtrl *gitpublic.Controller, volumeCtrl *volume.Controller, triggerer triggerer.Triggerer, canceler canceler.Canceler, manager manager.ManagerFactory, ) *Controller
func (*Controller) AddTCPProxy ¶
func (c *Controller) AddTCPProxy( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, in *TCPProxyInput, ) (*types.Application, error)
func (*Controller) AddVolume ¶
func (c *Controller) AddVolume( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, volumeIn *types.VolumeCreateInput, ) (*types.Application, error)
func (*Controller) Create ¶
func (c *Controller) Create( ctx context.Context, actor string, tenant *types.Tenant, project *types.Project, environment *types.Environment, in *types.ApplicationInput) (*types.Application, error)
func (*Controller) CreateFromTemplate ¶
func (c *Controller) CreateFromTemplate( ctx context.Context, actor string, tenant *types.Tenant, project *types.Project, environment *types.Environment, template *types.Template) ([]*types.Application, error)
func (*Controller) CreateGithub ¶
func (c *Controller) CreateGithub( ctx context.Context, actor string, tenant *types.Tenant, project *types.Project, environment *types.Environment, app *types.Application, ghApp *types.GithubApp, in *types.ApplicationInput, ) (*types.Application, error)
func (*Controller) CreateRegistry ¶
func (c *Controller) CreateRegistry( ctx context.Context, actor string, tenant *types.Tenant, project *types.Project, environment *types.Environment, in *types.RegistryInput) (*types.Application, error)
func (*Controller) CreateWithoutTx ¶
func (c *Controller) CreateWithoutTx(ctx context.Context, dto *createOrUpdateDto) (*types.Application, error)
func (*Controller) DeleteDomain ¶
func (c *Controller) DeleteDomain( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, ) (*types.Application, error)
func (*Controller) DeleteTCPProxy ¶
func (c *Controller) DeleteTCPProxy( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, ) (*types.Application, error)
func (*Controller) DeleteVolume ¶
func (c *Controller) DeleteVolume( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, volume *types.Volume, ) (*types.Application, error)
func (*Controller) Deploy ¶
func (c *Controller) Deploy(ctx context.Context, actor string, action enum.TriggerAction, application *types.Application) (*types.Deployment, error)
func (*Controller) DetachVolume ¶
func (c *Controller) DetachVolume( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, volume *types.Volume, ) (*types.Application, error)
func (*Controller) GenerateDomain ¶
func (c *Controller) GenerateDomain( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, ) (*types.Application, error)
func (*Controller) Get ¶
func (c *Controller) Get(ctx context.Context, tenantID, projectID, environmentID, applicationUID int64) (*types.Application, error)
func (*Controller) GetDefaultGitIn ¶
func (c *Controller) GetDefaultGitIn() *types.ApplicationInput
Default in
func (*Controller) GetGitpublicIn ¶
func (c *Controller) GetGitpublicIn(ctx context.Context, repoURL string) (*types.ApplicationInput, error)
func (*Controller) GetLogs ¶
func (c *Controller) GetLogs(ctx context.Context, app *types.Application) ([]*types.Artifact, error)
func (*Controller) GetRegistryIn ¶
func (c *Controller) GetRegistryIn(image string, networkIn *types.NetworkInput) *types.ApplicationInput
func (*Controller) GetRestrictions ¶
func (c *Controller) GetRestrictions(ctx context.Context, tenant *types.Tenant) *types.ApplicationRestrction
func (*Controller) List ¶
func (c *Controller) List(ctx context.Context, tenantID, projectID, environmentID int64) ([]*types.Application, error)
func (*Controller) NeedsDeployment ¶
func (c *Controller) NeedsDeployment(ctx context.Context, application *types.Application) (*types.Application, error)
func (*Controller) Redeploy ¶
func (c *Controller) Redeploy(ctx context.Context, actor string, application *types.Application) (*types.Deployment, error)
func (*Controller) SoftDelete ¶
func (c *Controller) SoftDelete(ctx context.Context, app *types.Application, opts *AppDeleteOption) error
func (*Controller) SoftDeleteInEnvironment ¶
func (c *Controller) SoftDeleteInEnvironment(ctx context.Context, envID, now int64) error
func (*Controller) SuggestFQDN ¶
func (c *Controller) SuggestFQDN(ctx context.Context, app *types.Application) (string, error)
func (*Controller) TailLog ¶
func (c *Controller) TailLog(ctx context.Context, app *types.Application) (<-chan *types.ArtifactLogLine, <-chan error, error)
func (*Controller) Update ¶
func (c *Controller) Update( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, in *types.ApplicationInput, ) (*types.Application, error)
func (*Controller) UpdateDomain ¶
func (c *Controller) UpdateDomain( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, in *UpdateDomainInput, ) (*types.Application, error)
func (*Controller) UpdatePrivateNetwork ¶
func (c *Controller) UpdatePrivateNetwork( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, in *PrivateNetworkInput, ) (*types.Application, error)
func (*Controller) UpdateVolume ¶
func (c *Controller) UpdateVolume( ctx context.Context, session *auth.Session, tenant *types.Tenant, project *types.Project, environment *types.Environment, application *types.Application, volume *types.Volume, ) (*types.Application, error)
type PrivateNetworkInput ¶
type PrivateNetworkInput struct {
Subdomain string `json:"privateSubdomain"`
}
func PrivateNetworkFromApp ¶
func PrivateNetworkFromApp(app *types.Application) *PrivateNetworkInput
type TCPProxyInput ¶
type TCPProxyInput struct {
Port int `json:"tcpProxyPort,string"`
}
type UpdateDomainInput ¶
type UpdateDomainInput struct {
Scheme string `json:"scheme"`
Domain string `json:"domain"`
Subdomain string `json:"subdomain"`
Port int `json:"serviceDomainPort,string"`
}
func FromDomainSpec ¶
func FromDomainSpec(spec *types.ApplicationSpec) *UpdateDomainInput
Click to show internal directories.
Click to hide internal directories.