Documentation
¶
Index ¶
- Variables
- type Container
- func (*Container) Descriptor() ([]byte, []int)deprecated
- func (x *Container) GetDeploymentId() string
- func (x *Container) GetId() string
- func (x *Container) GetImage() string
- func (x *Container) GetName() string
- func (x *Container) GetRegion() string
- func (x *Container) GetResourceState() *opaqueany.Any
- func (x *Container) GetUrl() string
- func (*Container) ProtoMessage()
- func (x *Container) ProtoReflect() protoreflect.Message
- func (x *Container) Reset()
- func (x *Container) String() string
- func (c *Container) URL() string
- type Platform
- type PlatformConfig
- type Resource
- type Resource_Container
- func (*Resource_Container) Descriptor() ([]byte, []int)deprecated
- func (x *Resource_Container) GetId() string
- func (x *Resource_Container) GetRegion() string
- func (*Resource_Container) ProtoMessage()
- func (x *Resource_Container) ProtoReflect() protoreflect.Message
- func (x *Resource_Container) Reset()
- func (x *Resource_Container) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_container_plugin_proto protoreflect.FileDescriptor
View Source
var Options = []sdk.Option{ sdk.WithComponents(&Platform{}), }
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
DeploymentId string `protobuf:"bytes,6,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
ResourceState *opaqueany.Any `protobuf:"bytes,7,opt,name=resource_state,json=resourceState,proto3" json:"resource_state,omitempty"`
// contains filtered or unexported fields
}
func (*Container) Descriptor
deprecated
func (*Container) GetDeploymentId ¶
func (*Container) GetResourceState ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
func (*Container) ProtoReflect ¶
func (x *Container) ProtoReflect() protoreflect.Message
type Platform ¶
Platform is the Platform implementation for Scaleway Container.
func (*Platform) DeployFunc ¶
func (p *Platform) DeployFunc() interface{}
func (*Platform) DestroyFunc ¶
func (p *Platform) DestroyFunc() interface{}
func (*Platform) StatusFunc ¶
func (p *Platform) StatusFunc() interface{}
type PlatformConfig ¶
type PlatformConfig struct {
// Profile name from scaleway config, used to change from default profile
Profile string `hcl:"profile,optional"`
// NamespaceID is the ID of the container namespace used to deploy container
NamespaceID string `hcl:"namespace_id"`
// Region where the container namespace is located, will default to profile's namespace
Region string `hcl:"region,optional"`
// Port is the listening port of your container, will default to API's default
Port uint32 `hcl:"port,optional"`
// Env is a map of static env variables to add to your container, static env variable are not secrets
Env map[string]string `hcl:"env,optional"`
// Timeout is the maximum amount of time in seconds during which your container can process a request before being stopped
Timeout uint32 `hcl:"timeout,optional"`
// Privacy mode of your container, defaults to public
// your container may still remain public using waypoint url service
Privacy string `hcl:"privacy,optional"`
// MaxConcurrency is the maximum number of simultaneous requests your container can handle at the same time, defaults to 50
MaxConcurrency uint32 `hcl:"max_concurrency,optional"`
// MinScale is the minimum scaling value of your container, defaults to 0
MinScale uint32 `hcl:"min_scale,optional"`
// MaxScale is the minimum scaling value of your container, defaults to 5
MaxScale uint32 `hcl:"max_scale,optional"`
// MemoryLimit is the amount of memory allocated to your container, this is the value that change the price you pay per container, defaults to 256MB
MemoryLimit uint32 `hcl:"memory_limit,optional"`
}
PlatformConfig is the config for the Scaleway Container Platform
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) Descriptor
deprecated
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type Resource_Container ¶
type Resource_Container struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
// contains filtered or unexported fields
}
func (*Resource_Container) Descriptor
deprecated
func (*Resource_Container) Descriptor() ([]byte, []int)
Deprecated: Use Resource_Container.ProtoReflect.Descriptor instead.
func (*Resource_Container) GetId ¶
func (x *Resource_Container) GetId() string
func (*Resource_Container) GetRegion ¶
func (x *Resource_Container) GetRegion() string
func (*Resource_Container) ProtoMessage ¶
func (*Resource_Container) ProtoMessage()
func (*Resource_Container) ProtoReflect ¶
func (x *Resource_Container) ProtoReflect() protoreflect.Message
func (*Resource_Container) Reset ¶
func (x *Resource_Container) Reset()
func (*Resource_Container) String ¶
func (x *Resource_Container) String() string
Click to show internal directories.
Click to hide internal directories.