Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Deployment
- func (*Deployment) Descriptor() ([]byte, []int)deprecated
- func (x *Deployment) GetAppGUID() string
- func (x *Deployment) GetId() string
- func (x *Deployment) GetName() string
- func (x *Deployment) GetOrganisationGUID() string
- func (x *Deployment) GetSpaceGUID() string
- func (x *Deployment) GetUrl() string
- func (*Deployment) ProtoMessage()
- func (x *Deployment) ProtoReflect() protoreflect.Message
- func (x *Deployment) Reset()
- func (x *Deployment) String() string
- func (x *Deployment) URL() string
- type DeploymentState
- type DockerConfig
- type HealthCheckConfig
- type HealthCheckParams
- type Platform
- func (p *Platform) Config() (interface{}, error)
- func (p *Platform) ConfigSet(config interface{}) error
- func (p *Platform) Deploy(_ context.Context, log hclog.Logger, src *component.Source, img *docker.Image, ...) (*Deployment, error)
- func (p *Platform) DeployFunc() interface{}
- func (p *Platform) DestroyFunc() interface{}
- func (p *Platform) Generation() ([]byte, error)
- func (p *Platform) GenerationFunc() interface{}
- func (p *Platform) Status(ctx context.Context, log hclog.Logger, deployment *Deployment, ui terminal.UI) (*proto.StatusReport, error)
- func (p *Platform) StatusFunc() interface{}
- type PlatformConfig
- type QuotaConfig
- type QuotaParams
- type UserPasswordCredentials
Constants ¶
View Source
const DefaultDeploymentTimeout = 5 * time.Minute
Variables ¶
View Source
var File_platform_output_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Organisation string `hcl:"organisation"` Space string `hcl:"space"` Docker *DockerConfig `hcl:"docker,block"` Domain string `hcl:"domain"` Quota *QuotaConfig `hcl:"quota,block"` HealthCheck *HealthCheckConfig `hcl:"health_check,block"` Env map[string]string `hcl:"env,optional"` EnvFromFile string `hcl:"env_from_file,optional"` ServiceBindings []string `hcl:"service_bindings,optional"` DeploymentTimeoutSeconds string `hcl:"deployment_timeout_seconds,optional"` // contains filtered or unexported fields }
type Deployment ¶
type Deployment struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` OrganisationGUID string `protobuf:"bytes,3,opt,name=OrganisationGUID,proto3" json:"OrganisationGUID,omitempty"` SpaceGUID string `protobuf:"bytes,4,opt,name=SpaceGUID,proto3" json:"SpaceGUID,omitempty"` AppGUID string `protobuf:"bytes,5,opt,name=AppGUID,proto3" json:"AppGUID,omitempty"` Name string `protobuf:"bytes,6,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
You can customise this message to change the fields for the output value from your Deployment
func (*Deployment) Descriptor
deprecated
func (*Deployment) Descriptor() ([]byte, []int)
Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) GetAppGUID ¶
func (x *Deployment) GetAppGUID() string
func (*Deployment) GetId ¶
func (x *Deployment) GetId() string
func (*Deployment) GetName ¶
func (x *Deployment) GetName() string
func (*Deployment) GetOrganisationGUID ¶
func (x *Deployment) GetOrganisationGUID() string
func (*Deployment) GetSpaceGUID ¶
func (x *Deployment) GetSpaceGUID() string
func (*Deployment) GetUrl ¶
func (x *Deployment) GetUrl() string
func (*Deployment) ProtoMessage ¶
func (*Deployment) ProtoMessage()
func (*Deployment) ProtoReflect ¶
func (x *Deployment) ProtoReflect() protoreflect.Message
func (*Deployment) Reset ¶
func (x *Deployment) Reset()
func (*Deployment) String ¶
func (x *Deployment) String() string
func (*Deployment) URL ¶
func (x *Deployment) URL() string
type DeploymentState ¶
type DeploymentState struct {
// contains filtered or unexported fields
}
type DockerConfig ¶
type DockerConfig struct {
Username string `hcl:"username"`
}
type HealthCheckConfig ¶
type HealthCheckParams ¶
type HealthCheckParams struct { Type constant.HealthCheckType Endpoint string InvocationTimeout int64 Timeout int64 }
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) DeployFunc ¶
func (p *Platform) DeployFunc() interface{}
DeployFunc implements Builder
func (*Platform) DestroyFunc ¶
func (p *Platform) DestroyFunc() interface{}
DestroyFunc implements the Destroyer interface
func (*Platform) Generation ¶
func (*Platform) GenerationFunc ¶
func (p *Platform) GenerationFunc() interface{}
GenerationFunc implements component.Generation
func (*Platform) Status ¶
func (p *Platform) Status( ctx context.Context, log hclog.Logger, deployment *Deployment, ui terminal.UI, ) (*proto.StatusReport, error)
func (*Platform) StatusFunc ¶
func (p *Platform) StatusFunc() interface{}
type PlatformConfig ¶
type QuotaConfig ¶
type QuotaParams ¶
type QuotaParams struct {
// contains filtered or unexported fields
}
type UserPasswordCredentials ¶
Click to show internal directories.
Click to hide internal directories.