Documentation
¶
Index ¶
- Constants
- func AppEnvPrefix(a *apiv1.App) string
- func DependencyEnvPrefix(d *apiv1.Dependency) string
- func NewLockError(lockname, lockinfo, owner string, createdAt time.Time) *apiv1.LockError
- func NewPlanAction(typ apiv1.PlanType, source, namespace, objectID, objectType, objectName string, ...) *apiv1.PlanAction
- func NewPlanActionCreate(source, namespace, objectID, objectType, objectName string, fields []string, ...) *apiv1.PlanAction
- func NewPlanActionDelete(source, namespace, objectID, objectType, objectName string, fields []string, ...) *apiv1.PlanAction
- func NewPlanActionProcess(source, namespace, objectID, objectType, objectName string, fields []string, ...) *apiv1.PlanAction
- func NewPlanActionRecreate(source, namespace, objectID, objectType, objectName string, fields []string, ...) *apiv1.PlanAction
- func NewPlanActionUpdate(source, namespace, objectID, objectType, objectName string, fields []string, ...) *apiv1.PlanAction
- func NewPluginState() *apiv1.PluginState
- func NewStatusLockError(det ...*apiv1.LockError) error
- func NewStatusStateLockError(lockinfo, owner string, createdAt time.Time) error
- func NewStatusValidationError(path, msg string) error
- func VarsForApp(av AppVars, a *apiv1.App, depVars any) map[string]any
- func VarsFromAppRunType(app *apiv1.AppRun) map[string]any
- func VarsFromAppType(app *apiv1.App) map[string]any
- type AppCDN
- type AppScheduler
- type AppVars
- type DatabaseDepNeed
- type DatabaseDepOptionUser
- type DatabaseDepOptions
- type DomainInfoMatcher
- type FunctionAppBuild
- type FunctionAppDeployOptions
- type FunctionAppProperties
- type MonitoringChannelEmail
- type MonitoringChannelSlack
- type ServiceAppBuild
- type ServiceAppContainer
- type ServiceAppContainerProbe
- type ServiceAppDeployOptions
- type ServiceAppProperties
- type StaticAppBasicAuth
- type StaticAppBuild
- type StaticAppDeployOptions
- type StaticAppProperties
- type StorageDepOptions
Constants ¶
View Source
const ( LockErrorMessage = "lock error" StateLockErrorMessage = "state lock error" ValidationErrorMessage = "validation error" )
Variables ¶
This section is empty.
Functions ¶
func AppEnvPrefix ¶
func DependencyEnvPrefix ¶
func DependencyEnvPrefix(d *apiv1.Dependency) string
func NewLockError ¶
func NewPlanAction ¶
func NewPlanActionCreate ¶
func NewPlanActionCreate(source, namespace, objectID, objectType, objectName string, fields []string, critical bool) *apiv1.PlanAction
func NewPlanActionDelete ¶
func NewPlanActionDelete(source, namespace, objectID, objectType, objectName string, fields []string, critical bool) *apiv1.PlanAction
func NewPlanActionProcess ¶
func NewPlanActionProcess(source, namespace, objectID, objectType, objectName string, fields []string, critical bool) *apiv1.PlanAction
func NewPlanActionRecreate ¶
func NewPlanActionRecreate(source, namespace, objectID, objectType, objectName string, fields []string, critical bool) *apiv1.PlanAction
func NewPlanActionUpdate ¶
func NewPlanActionUpdate(source, namespace, objectID, objectType, objectName string, fields []string, critical bool) *apiv1.PlanAction
func NewPluginState ¶
func NewPluginState() *apiv1.PluginState
func NewStatusLockError ¶
func NewStatusStateLockError ¶
Types ¶
type AppScheduler ¶
type AppVars ¶
func AppVarsFromAppRun ¶
func AppVarsFromAppStates ¶
func AppVarsFromApps ¶
func MergeAppVars ¶
type DatabaseDepNeed ¶
type DatabaseDepNeed struct {
User string `json:"user"`
Password string `json:"password"`
Hostname string `json:"hostname"`
Database string `json:"database"`
}
func NewDatabaseDepNeed ¶
func NewDatabaseDepNeed(in map[string]any) (*DatabaseDepNeed, error)
type DatabaseDepOptionUser ¶
type DatabaseDepOptions ¶
type DatabaseDepOptions struct {
Version string `json:"version"`
HA bool `json:"high_availability"`
Tier string `json:"tier"`
Flags map[string]string `json:"flags"`
Users map[string]*DatabaseDepOptionUser `json:"users"`
}
func NewDatabaseDepOptions ¶
func NewDatabaseDepOptions(in map[string]any) (*DatabaseDepOptions, error)
type DomainInfoMatcher ¶
type DomainInfoMatcher struct {
// contains filtered or unexported fields
}
func NewDomainInfoMatcher ¶
func NewDomainInfoMatcher(domains []*apiv1.DomainInfo) *DomainInfoMatcher
func (*DomainInfoMatcher) Match ¶
func (m *DomainInfoMatcher) Match(v string) *apiv1.DomainInfo
type FunctionAppBuild ¶
type FunctionAppBuild struct {
Env map[string]string `json:"env"`
Command *command.StringCommand `json:"command"`
Dir string `json:"dir"`
}
Function app properties.
type FunctionAppDeployOptions ¶
type FunctionAppDeployOptions struct {
MemoryLimit int `json:"memory_limit,omitempty"`
MinScale int `json:"min_scale,omitempty"`
MaxScale int `json:"max_scale,omitempty"`
Timeout int `json:"timeout,omitempty"`
}
func NewFunctionAppDeployOptions ¶
func NewFunctionAppDeployOptions(in map[string]any) (*FunctionAppDeployOptions, error)
type FunctionAppProperties ¶
type FunctionAppProperties struct {
Private bool `json:"private,omitempty"`
Entrypoint string `json:"entrypoint,omitempty"`
Runtime string `json:"runtime,omitempty"`
Build *FunctionAppBuild `json:"build,omitempty"`
CDN *AppCDN `json:"cdn,omitempty"`
Scheduler []*AppScheduler `json:"scheduler,omitempty"`
}
func NewFunctionAppProperties ¶
func NewFunctionAppProperties(in map[string]any) (*FunctionAppProperties, error)
type MonitoringChannelEmail ¶
type MonitoringChannelEmail struct {
Email string `json:"email,omitempty"`
}
func NewMonitoringChannelEmail ¶
func NewMonitoringChannelEmail(in map[string]any) (*MonitoringChannelEmail, error)
type MonitoringChannelSlack ¶
type MonitoringChannelSlack struct {
Channel string `json:"channel,omitempty"`
Token string `json:"token,omitempty"`
}
func NewMonitoringChannelSlack ¶
func NewMonitoringChannelSlack(in map[string]any) (*MonitoringChannelSlack, error)
type ServiceAppBuild ¶
type ServiceAppBuild struct {
DockerImage string `json:"image"`
SkipBuild bool `json:"skip_build"`
SkipPull bool `json:"skip_pull"`
Dockerfile string `json:"dockerfile"`
DockerContext string `json:"context"`
DockerBuildArgs map[string]string `json:"build_args"`
DockerSecrets map[string]string `json:"secrets"`
}
type ServiceAppContainer ¶
type ServiceAppContainer struct {
Entrypoint *command.StringCommand `json:"entrypoint,omitempty"`
Command *command.StringCommand `json:"command,omitempty"`
Port int `json:"port" default:"8080"`
StartupProbe *ServiceAppContainerProbe `json:"startup_probe,omitempty"`
LivenessProbe *ServiceAppContainerProbe `json:"liveness_probe,omitempty"`
}
type ServiceAppContainerProbe ¶
type ServiceAppContainerProbe struct {
HTTPPath string `json:"http_path,omitempty"`
GRPCService string `json:"grpc_service,omitempty"`
Port int `json:"port,omitempty"`
InitialDelaySeconds int `json:"initial_delay_seconds,omitempty" default:"0"`
PeriodSeconds int `json:"period_seconds,omitempty" default:"10"`
TimeoutSeconds int `json:"timeout_seconds,omitempty" default:"1"`
FailureThreshold int `json:"failure_threshold,omitempty" default:"3"`
}
type ServiceAppDeployOptions ¶
type ServiceAppDeployOptions struct {
CPULimit float64 `json:"cpu_limit,omitempty"`
MemoryLimit int `json:"memory_limit,omitempty"`
MinScale int `json:"min_scale,omitempty"`
MaxScale int `json:"max_scale,omitempty"`
Timeout int `json:"timeout,omitempty"`
}
func NewServiceAppDeployOptions ¶
func NewServiceAppDeployOptions(in map[string]any) (*ServiceAppDeployOptions, error)
type ServiceAppProperties ¶
type ServiceAppProperties struct {
Private bool `json:"private"`
Build *ServiceAppBuild `json:"build,omitempty"`
Container *ServiceAppContainer `json:"container,omitempty"`
CDN *AppCDN `json:"cdn,omitempty"`
Scheduler []*AppScheduler `json:"scheduler,omitempty"`
}
func NewServiceAppProperties ¶
func NewServiceAppProperties(in map[string]any) (*ServiceAppProperties, error)
type StaticAppBasicAuth ¶
type StaticAppBuild ¶
type StaticAppBuild struct {
Env map[string]string `json:"env"`
Command *command.StringCommand `json:"command"`
Dir string `json:"dir"`
}
type StaticAppDeployOptions ¶
type StaticAppDeployOptions struct {
MinScale int `json:"min_scale,omitempty"`
MaxScale int `json:"max_scale,omitempty"`
Timeout int `json:"timeout,omitempty"`
Patterns []string `json:"patterns,omitempty"`
}
func NewStaticAppDeployOptions ¶
func NewStaticAppDeployOptions(in map[string]any) (*StaticAppDeployOptions, error)
type StaticAppProperties ¶
type StaticAppProperties struct {
Build *StaticAppBuild `json:"build,omitempty"`
CDN *AppCDN `json:"cdn,omitempty"`
BasicAuth *StaticAppBasicAuth `json:"basic_auth,omitempty"`
Routing string `json:"routing,omitempty"`
RemoveTrailingSlash *bool `json:"remove_trailing_slash,omitempty"`
}
func NewStaticAppProperties ¶
func NewStaticAppProperties(in map[string]any) (*StaticAppProperties, error)
type StorageDepOptions ¶
type StorageDepOptions struct {
Name string `json:"name"`
Versioning bool `json:"versioning"`
Location string `json:"location"`
DeleteInDays int `json:"delete_in_days"`
ExpireVersionsDays int `json:"expire_versions_in_days"`
MaxVersions int `json:"max_versions"`
Public bool `json:"public"`
CORS []struct {
Origins []string `json:"origins"`
Methods []string `json:"methods"`
ResponseHeaders []string `json:"response_headers"`
MaxAgeInSeconds int `json:"max_age_in_seconds"`
} `json:"cors"`
}
func NewStorageDepOptions ¶
func NewStorageDepOptions(in map[string]any) (*StorageDepOptions, error)
Click to show internal directories.
Click to hide internal directories.