container

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetDeploymentId

func (x *Container) GetDeploymentId() string

func (*Container) GetId

func (x *Container) GetId() string

func (*Container) GetImage

func (x *Container) GetImage() string

func (*Container) GetName

func (x *Container) GetName() string

func (*Container) GetRegion

func (x *Container) GetRegion() string

func (*Container) GetResourceState

func (x *Container) GetResourceState() *opaqueany.Any

func (*Container) GetUrl

func (x *Container) GetUrl() string

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

func (x *Container) ProtoReflect() protoreflect.Message

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string

func (*Container) URL

func (c *Container) URL() string

type Platform

type Platform struct {
	PluginConfig plugin.Config
	// contains filtered or unexported fields
}

Platform is the Platform implementation for Scaleway Container.

func (*Platform) Config

func (p *Platform) Config() (interface{}, error)

func (*Platform) ConfigSet

func (p *Platform) ConfigSet(i interface{}) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL