proto

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogLevel_name = map[int32]string{
		0: "TRACE",
		1: "DEBUG",
		2: "INFO",
		3: "WARN",
		4: "ERROR",
	}
	LogLevel_value = map[string]int32{
		"TRACE": 0,
		"DEBUG": 1,
		"INFO":  2,
		"WARN":  3,
		"ERROR": 4,
	}
)

Enum value maps for LogLevel.

View Source
var (
	AppSharingLevel_name = map[int32]string{
		0: "OWNER",
		1: "AUTHENTICATED",
		2: "PUBLIC",
	}
	AppSharingLevel_value = map[string]int32{
		"OWNER":         0,
		"AUTHENTICATED": 1,
		"PUBLIC":        2,
	}
)

Enum value maps for AppSharingLevel.

View Source
var (
	WorkspaceTransition_name = map[int32]string{
		0: "START",
		1: "STOP",
		2: "DESTROY",
	}
	WorkspaceTransition_value = map[string]int32{
		"START":   0,
		"STOP":    1,
		"DESTROY": 2,
	}
)

Enum value maps for WorkspaceTransition.

View Source
var (
	ParameterSource_Scheme_name = map[int32]string{
		0: "DATA",
	}
	ParameterSource_Scheme_value = map[string]int32{
		"DATA": 0,
	}
)

Enum value maps for ParameterSource_Scheme.

View Source
var (
	ParameterDestination_Scheme_name = map[int32]string{
		0: "ENVIRONMENT_VARIABLE",
		1: "PROVISIONER_VARIABLE",
	}
	ParameterDestination_Scheme_value = map[string]int32{
		"ENVIRONMENT_VARIABLE": 0,
		"PROVISIONER_VARIABLE": 1,
	}
)

Enum value maps for ParameterDestination_Scheme.

View Source
var (
	ParameterSchema_TypeSystem_name = map[int32]string{
		0: "None",
		1: "HCL",
	}
	ParameterSchema_TypeSystem_value = map[string]int32{
		"None": 0,
		"HCL":  1,
	}
)

Enum value maps for ParameterSchema_TypeSystem.

View Source
var File_provisionersdk_proto_provisioner_proto protoreflect.FileDescriptor

Functions

func DRPCRegisterProvisioner

func DRPCRegisterProvisioner(mux drpc.Mux, impl DRPCProvisionerServer) error

Types

type Agent

type Agent 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"`
	Env             map[string]string `` /* 147-byte string literal not displayed */
	StartupScript   string            `protobuf:"bytes,4,opt,name=startup_script,json=startupScript,proto3" json:"startup_script,omitempty"`
	OperatingSystem string            `protobuf:"bytes,5,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"`
	Architecture    string            `protobuf:"bytes,6,opt,name=architecture,proto3" json:"architecture,omitempty"`
	Directory       string            `protobuf:"bytes,7,opt,name=directory,proto3" json:"directory,omitempty"`
	Apps            []*App            `protobuf:"bytes,8,rep,name=apps,proto3" json:"apps,omitempty"`
	// Types that are assignable to Auth:
	//
	//	*Agent_Token
	//	*Agent_InstanceId
	Auth isAgent_Auth `protobuf_oneof:"auth"`
	// contains filtered or unexported fields
}

Agent represents a running agent on the workspace.

func (*Agent) Descriptor deprecated

func (*Agent) Descriptor() ([]byte, []int)

Deprecated: Use Agent.ProtoReflect.Descriptor instead.

func (*Agent) GetApps added in v0.6.2

func (x *Agent) GetApps() []*App

func (*Agent) GetArchitecture added in v0.4.1

func (x *Agent) GetArchitecture() string

func (*Agent) GetAuth

func (m *Agent) GetAuth() isAgent_Auth

func (*Agent) GetDirectory added in v0.5.3

func (x *Agent) GetDirectory() string

func (*Agent) GetEnv

func (x *Agent) GetEnv() map[string]string

func (*Agent) GetId

func (x *Agent) GetId() string

func (*Agent) GetInstanceId

func (x *Agent) GetInstanceId() string

func (*Agent) GetName added in v0.4.1

func (x *Agent) GetName() string

func (*Agent) GetOperatingSystem added in v0.4.1

func (x *Agent) GetOperatingSystem() string

func (*Agent) GetStartupScript

func (x *Agent) GetStartupScript() string

func (*Agent) GetToken

func (x *Agent) GetToken() string

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) ProtoReflect

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

func (*Agent) Reset

func (x *Agent) Reset()

func (*Agent) String

func (x *Agent) String() string

type Agent_InstanceId

type Agent_InstanceId struct {
	InstanceId string `protobuf:"bytes,10,opt,name=instance_id,json=instanceId,proto3,oneof"`
}

type Agent_Token

type Agent_Token struct {
	Token string `protobuf:"bytes,9,opt,name=token,proto3,oneof"`
}

type App added in v0.6.2

type App struct {
	Name         string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Command      string          `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	Url          string          `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	Icon         string          `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
	Subdomain    bool            `protobuf:"varint,5,opt,name=subdomain,proto3" json:"subdomain,omitempty"`
	Healthcheck  *Healthcheck    `protobuf:"bytes,6,opt,name=healthcheck,proto3" json:"healthcheck,omitempty"`
	SharingLevel AppSharingLevel `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

App represents a dev-accessible application on the workspace.

func (*App) Descriptor deprecated added in v0.6.2

func (*App) Descriptor() ([]byte, []int)

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetCommand added in v0.6.2

func (x *App) GetCommand() string

func (*App) GetHealthcheck added in v0.9.0

func (x *App) GetHealthcheck() *Healthcheck

func (*App) GetIcon added in v0.6.2

func (x *App) GetIcon() string

func (*App) GetName added in v0.6.2

func (x *App) GetName() string

func (*App) GetSharingLevel added in v0.10.0

func (x *App) GetSharingLevel() AppSharingLevel

func (*App) GetSubdomain added in v0.9.4

func (x *App) GetSubdomain() bool

func (*App) GetUrl added in v0.6.2

func (x *App) GetUrl() string

func (*App) ProtoMessage added in v0.6.2

func (*App) ProtoMessage()

func (*App) ProtoReflect added in v0.6.2

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

func (*App) Reset added in v0.6.2

func (x *App) Reset()

func (*App) String added in v0.6.2

func (x *App) String() string

type AppSharingLevel added in v0.10.0

type AppSharingLevel int32
const (
	AppSharingLevel_OWNER         AppSharingLevel = 0
	AppSharingLevel_AUTHENTICATED AppSharingLevel = 1
	AppSharingLevel_PUBLIC        AppSharingLevel = 2
)

func (AppSharingLevel) Descriptor added in v0.10.0

func (AppSharingLevel) Enum added in v0.10.0

func (x AppSharingLevel) Enum() *AppSharingLevel

func (AppSharingLevel) EnumDescriptor deprecated added in v0.10.0

func (AppSharingLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use AppSharingLevel.Descriptor instead.

func (AppSharingLevel) Number added in v0.10.0

func (AppSharingLevel) String added in v0.10.0

func (x AppSharingLevel) String() string

func (AppSharingLevel) Type added in v0.10.0

type DRPCProvisionerClient

type DRPCProvisionerClient interface {
	DRPCConn() drpc.Conn

	Parse(ctx context.Context, in *Parse_Request) (DRPCProvisioner_ParseClient, error)
	Provision(ctx context.Context) (DRPCProvisioner_ProvisionClient, error)
}

func NewDRPCProvisionerClient

func NewDRPCProvisionerClient(cc drpc.Conn) DRPCProvisionerClient

type DRPCProvisionerDescription

type DRPCProvisionerDescription struct{}

func (DRPCProvisionerDescription) Method

func (DRPCProvisionerDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool)

func (DRPCProvisionerDescription) NumMethods

func (DRPCProvisionerDescription) NumMethods() int

type DRPCProvisionerServer

type DRPCProvisionerServer interface {
	Parse(*Parse_Request, DRPCProvisioner_ParseStream) error
	Provision(DRPCProvisioner_ProvisionStream) error
}

type DRPCProvisionerUnimplementedServer

type DRPCProvisionerUnimplementedServer struct{}

func (*DRPCProvisionerUnimplementedServer) Parse

func (*DRPCProvisionerUnimplementedServer) Provision

type DRPCProvisioner_ParseClient

type DRPCProvisioner_ParseClient interface {
	drpc.Stream
	Recv() (*Parse_Response, error)
}

type DRPCProvisioner_ParseStream

type DRPCProvisioner_ParseStream interface {
	drpc.Stream
	Send(*Parse_Response) error
}

type DRPCProvisioner_ProvisionClient

type DRPCProvisioner_ProvisionClient interface {
	drpc.Stream
	Send(*Provision_Request) error
	Recv() (*Provision_Response, error)
}

type DRPCProvisioner_ProvisionStream

type DRPCProvisioner_ProvisionStream interface {
	drpc.Stream
	Send(*Provision_Response) error
	Recv() (*Provision_Request, error)
}

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

Empty indicates a successful request/response.

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Healthcheck added in v0.9.0

type Healthcheck struct {
	Url       string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Interval  int32  `protobuf:"varint,2,opt,name=interval,proto3" json:"interval,omitempty"`
	Threshold int32  `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

Healthcheck represents configuration for checking for app readiness.

func (*Healthcheck) Descriptor deprecated added in v0.9.0

func (*Healthcheck) Descriptor() ([]byte, []int)

Deprecated: Use Healthcheck.ProtoReflect.Descriptor instead.

func (*Healthcheck) GetInterval added in v0.9.0

func (x *Healthcheck) GetInterval() int32

func (*Healthcheck) GetThreshold added in v0.9.0

func (x *Healthcheck) GetThreshold() int32

func (*Healthcheck) GetUrl added in v0.9.0

func (x *Healthcheck) GetUrl() string

func (*Healthcheck) ProtoMessage added in v0.9.0

func (*Healthcheck) ProtoMessage()

func (*Healthcheck) ProtoReflect added in v0.9.0

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

func (*Healthcheck) Reset added in v0.9.0

func (x *Healthcheck) Reset()

func (*Healthcheck) String added in v0.9.0

func (x *Healthcheck) String() string

type InstanceIdentityAuth added in v0.4.1

type InstanceIdentityAuth struct {
	InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InstanceIdentityAuth) Descriptor deprecated added in v0.4.1

func (*InstanceIdentityAuth) Descriptor() ([]byte, []int)

Deprecated: Use InstanceIdentityAuth.ProtoReflect.Descriptor instead.

func (*InstanceIdentityAuth) GetInstanceId added in v0.4.1

func (x *InstanceIdentityAuth) GetInstanceId() string

func (*InstanceIdentityAuth) ProtoMessage added in v0.4.1

func (*InstanceIdentityAuth) ProtoMessage()

func (*InstanceIdentityAuth) ProtoReflect added in v0.4.1

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

func (*InstanceIdentityAuth) Reset added in v0.4.1

func (x *InstanceIdentityAuth) Reset()

func (*InstanceIdentityAuth) String added in v0.4.1

func (x *InstanceIdentityAuth) String() string

type Log

type Log struct {
	Level  LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=provisioner.LogLevel" json:"level,omitempty"`
	Output string   `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

Log represents output from a request.

func (*Log) Descriptor deprecated

func (*Log) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetLevel

func (x *Log) GetLevel() LogLevel

func (*Log) GetOutput

func (x *Log) GetOutput() string

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type LogLevel

type LogLevel int32

LogLevel represents severity of the log.

const (
	LogLevel_TRACE LogLevel = 0
	LogLevel_DEBUG LogLevel = 1
	LogLevel_INFO  LogLevel = 2
	LogLevel_WARN  LogLevel = 3
	LogLevel_ERROR LogLevel = 4
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

func (LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

type ParameterDestination

type ParameterDestination struct {
	Scheme ParameterDestination_Scheme `protobuf:"varint,1,opt,name=scheme,proto3,enum=provisioner.ParameterDestination_Scheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

ParameterDestination represents the target location for a provisioner to set the value.

func (*ParameterDestination) Descriptor deprecated

func (*ParameterDestination) Descriptor() ([]byte, []int)

Deprecated: Use ParameterDestination.ProtoReflect.Descriptor instead.

func (*ParameterDestination) GetScheme

func (*ParameterDestination) ProtoMessage

func (*ParameterDestination) ProtoMessage()

func (*ParameterDestination) ProtoReflect

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

func (*ParameterDestination) Reset

func (x *ParameterDestination) Reset()

func (*ParameterDestination) String

func (x *ParameterDestination) String() string

type ParameterDestination_Scheme

type ParameterDestination_Scheme int32
const (
	ParameterDestination_ENVIRONMENT_VARIABLE ParameterDestination_Scheme = 0
	ParameterDestination_PROVISIONER_VARIABLE ParameterDestination_Scheme = 1
)

func (ParameterDestination_Scheme) Descriptor

func (ParameterDestination_Scheme) Enum

func (ParameterDestination_Scheme) EnumDescriptor deprecated

func (ParameterDestination_Scheme) EnumDescriptor() ([]byte, []int)

Deprecated: Use ParameterDestination_Scheme.Descriptor instead.

func (ParameterDestination_Scheme) Number

func (ParameterDestination_Scheme) String

func (ParameterDestination_Scheme) Type

type ParameterSchema

type ParameterSchema struct {
	Name                     string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description              string                     `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	DefaultSource            *ParameterSource           `protobuf:"bytes,3,opt,name=default_source,json=defaultSource,proto3" json:"default_source,omitempty"`
	AllowOverrideSource      bool                       `protobuf:"varint,4,opt,name=allow_override_source,json=allowOverrideSource,proto3" json:"allow_override_source,omitempty"`
	DefaultDestination       *ParameterDestination      `protobuf:"bytes,5,opt,name=default_destination,json=defaultDestination,proto3" json:"default_destination,omitempty"`
	AllowOverrideDestination bool                       `` /* 136-byte string literal not displayed */
	RedisplayValue           bool                       `protobuf:"varint,7,opt,name=redisplay_value,json=redisplayValue,proto3" json:"redisplay_value,omitempty"`
	ValidationTypeSystem     ParameterSchema_TypeSystem `` /* 168-byte string literal not displayed */
	ValidationValueType      string                     `protobuf:"bytes,9,opt,name=validation_value_type,json=validationValueType,proto3" json:"validation_value_type,omitempty"`
	ValidationError          string                     `protobuf:"bytes,10,opt,name=validation_error,json=validationError,proto3" json:"validation_error,omitempty"`
	ValidationCondition      string                     `protobuf:"bytes,11,opt,name=validation_condition,json=validationCondition,proto3" json:"validation_condition,omitempty"`
	// contains filtered or unexported fields
}

ParameterSchema represents validation and type information for a parsed parameter.

func (*ParameterSchema) Descriptor deprecated

func (*ParameterSchema) Descriptor() ([]byte, []int)

Deprecated: Use ParameterSchema.ProtoReflect.Descriptor instead.

func (*ParameterSchema) GetAllowOverrideDestination

func (x *ParameterSchema) GetAllowOverrideDestination() bool

func (*ParameterSchema) GetAllowOverrideSource

func (x *ParameterSchema) GetAllowOverrideSource() bool

func (*ParameterSchema) GetDefaultDestination

func (x *ParameterSchema) GetDefaultDestination() *ParameterDestination

func (*ParameterSchema) GetDefaultSource

func (x *ParameterSchema) GetDefaultSource() *ParameterSource

func (*ParameterSchema) GetDescription

func (x *ParameterSchema) GetDescription() string

func (*ParameterSchema) GetName

func (x *ParameterSchema) GetName() string

func (*ParameterSchema) GetRedisplayValue

func (x *ParameterSchema) GetRedisplayValue() bool

func (*ParameterSchema) GetValidationCondition

func (x *ParameterSchema) GetValidationCondition() string

func (*ParameterSchema) GetValidationError

func (x *ParameterSchema) GetValidationError() string

func (*ParameterSchema) GetValidationTypeSystem

func (x *ParameterSchema) GetValidationTypeSystem() ParameterSchema_TypeSystem

func (*ParameterSchema) GetValidationValueType

func (x *ParameterSchema) GetValidationValueType() string

func (*ParameterSchema) ProtoMessage

func (*ParameterSchema) ProtoMessage()

func (*ParameterSchema) ProtoReflect

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

func (*ParameterSchema) Reset

func (x *ParameterSchema) Reset()

func (*ParameterSchema) String

func (x *ParameterSchema) String() string

type ParameterSchema_TypeSystem

type ParameterSchema_TypeSystem int32
const (
	ParameterSchema_None ParameterSchema_TypeSystem = 0
	ParameterSchema_HCL  ParameterSchema_TypeSystem = 1
)

func (ParameterSchema_TypeSystem) Descriptor

func (ParameterSchema_TypeSystem) Enum

func (ParameterSchema_TypeSystem) EnumDescriptor deprecated

func (ParameterSchema_TypeSystem) EnumDescriptor() ([]byte, []int)

Deprecated: Use ParameterSchema_TypeSystem.Descriptor instead.

func (ParameterSchema_TypeSystem) Number

func (ParameterSchema_TypeSystem) String

func (ParameterSchema_TypeSystem) Type

type ParameterSource

type ParameterSource struct {
	Scheme ParameterSource_Scheme `protobuf:"varint,1,opt,name=scheme,proto3,enum=provisioner.ParameterSource_Scheme" json:"scheme,omitempty"`
	Value  string                 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

ParameterSource represents the source location for a parameter to get it's value from.

func (*ParameterSource) Descriptor deprecated

func (*ParameterSource) Descriptor() ([]byte, []int)

Deprecated: Use ParameterSource.ProtoReflect.Descriptor instead.

func (*ParameterSource) GetScheme

func (x *ParameterSource) GetScheme() ParameterSource_Scheme

func (*ParameterSource) GetValue

func (x *ParameterSource) GetValue() string

func (*ParameterSource) ProtoMessage

func (*ParameterSource) ProtoMessage()

func (*ParameterSource) ProtoReflect

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

func (*ParameterSource) Reset

func (x *ParameterSource) Reset()

func (*ParameterSource) String

func (x *ParameterSource) String() string

type ParameterSource_Scheme

type ParameterSource_Scheme int32
const (
	ParameterSource_DATA ParameterSource_Scheme = 0
)

func (ParameterSource_Scheme) Descriptor

func (ParameterSource_Scheme) Enum

func (ParameterSource_Scheme) EnumDescriptor deprecated

func (ParameterSource_Scheme) EnumDescriptor() ([]byte, []int)

Deprecated: Use ParameterSource_Scheme.Descriptor instead.

func (ParameterSource_Scheme) Number

func (ParameterSource_Scheme) String

func (x ParameterSource_Scheme) String() string

func (ParameterSource_Scheme) Type

type ParameterValue

type ParameterValue struct {
	DestinationScheme ParameterDestination_Scheme `` /* 158-byte string literal not displayed */
	Name              string                      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Value             string                      `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

ParameterValue represents the resolved source and destination of a parameter.

func (*ParameterValue) Descriptor deprecated

func (*ParameterValue) Descriptor() ([]byte, []int)

Deprecated: Use ParameterValue.ProtoReflect.Descriptor instead.

func (*ParameterValue) GetDestinationScheme

func (x *ParameterValue) GetDestinationScheme() ParameterDestination_Scheme

func (*ParameterValue) GetName

func (x *ParameterValue) GetName() string

func (*ParameterValue) GetValue

func (x *ParameterValue) GetValue() string

func (*ParameterValue) ProtoMessage

func (*ParameterValue) ProtoMessage()

func (*ParameterValue) ProtoReflect

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

func (*ParameterValue) Reset

func (x *ParameterValue) Reset()

func (*ParameterValue) String

func (x *ParameterValue) String() string

type Parse

type Parse struct {
	// contains filtered or unexported fields
}

Parse consumes source-code from a directory to produce inputs.

func (*Parse) Descriptor deprecated

func (*Parse) Descriptor() ([]byte, []int)

Deprecated: Use Parse.ProtoReflect.Descriptor instead.

func (*Parse) ProtoMessage

func (*Parse) ProtoMessage()

func (*Parse) ProtoReflect

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

func (*Parse) Reset

func (x *Parse) Reset()

func (*Parse) String

func (x *Parse) String() string

type Parse_Complete

type Parse_Complete struct {
	ParameterSchemas []*ParameterSchema `protobuf:"bytes,2,rep,name=parameter_schemas,json=parameterSchemas,proto3" json:"parameter_schemas,omitempty"`
	// contains filtered or unexported fields
}

func (*Parse_Complete) Descriptor deprecated

func (*Parse_Complete) Descriptor() ([]byte, []int)

Deprecated: Use Parse_Complete.ProtoReflect.Descriptor instead.

func (*Parse_Complete) GetParameterSchemas

func (x *Parse_Complete) GetParameterSchemas() []*ParameterSchema

func (*Parse_Complete) ProtoMessage

func (*Parse_Complete) ProtoMessage()

func (*Parse_Complete) ProtoReflect

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

func (*Parse_Complete) Reset

func (x *Parse_Complete) Reset()

func (*Parse_Complete) String

func (x *Parse_Complete) String() string

type Parse_Request

type Parse_Request struct {
	Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"`
	// contains filtered or unexported fields
}

func (*Parse_Request) Descriptor deprecated

func (*Parse_Request) Descriptor() ([]byte, []int)

Deprecated: Use Parse_Request.ProtoReflect.Descriptor instead.

func (*Parse_Request) GetDirectory

func (x *Parse_Request) GetDirectory() string

func (*Parse_Request) ProtoMessage

func (*Parse_Request) ProtoMessage()

func (*Parse_Request) ProtoReflect

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

func (*Parse_Request) Reset

func (x *Parse_Request) Reset()

func (*Parse_Request) String

func (x *Parse_Request) String() string

type Parse_Response

type Parse_Response struct {

	// Types that are assignable to Type:
	//
	//	*Parse_Response_Log
	//	*Parse_Response_Complete
	Type isParse_Response_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Parse_Response) Descriptor deprecated

func (*Parse_Response) Descriptor() ([]byte, []int)

Deprecated: Use Parse_Response.ProtoReflect.Descriptor instead.

func (*Parse_Response) GetComplete

func (x *Parse_Response) GetComplete() *Parse_Complete

func (*Parse_Response) GetLog

func (x *Parse_Response) GetLog() *Log

func (*Parse_Response) GetType

func (m *Parse_Response) GetType() isParse_Response_Type

func (*Parse_Response) ProtoMessage

func (*Parse_Response) ProtoMessage()

func (*Parse_Response) ProtoReflect

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

func (*Parse_Response) Reset

func (x *Parse_Response) Reset()

func (*Parse_Response) String

func (x *Parse_Response) String() string

type Parse_Response_Complete

type Parse_Response_Complete struct {
	Complete *Parse_Complete `protobuf:"bytes,2,opt,name=complete,proto3,oneof"`
}

type Parse_Response_Log

type Parse_Response_Log struct {
	Log *Log `protobuf:"bytes,1,opt,name=log,proto3,oneof"`
}

type Provision

type Provision struct {
	// contains filtered or unexported fields
}

Provision consumes source-code from a directory to produce resources.

func (*Provision) Descriptor deprecated

func (*Provision) Descriptor() ([]byte, []int)

Deprecated: Use Provision.ProtoReflect.Descriptor instead.

func (*Provision) ProtoMessage

func (*Provision) ProtoMessage()

func (*Provision) ProtoReflect

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

func (*Provision) Reset

func (x *Provision) Reset()

func (*Provision) String

func (x *Provision) String() string

type Provision_Cancel

type Provision_Cancel struct {
	// contains filtered or unexported fields
}

func (*Provision_Cancel) Descriptor deprecated

func (*Provision_Cancel) Descriptor() ([]byte, []int)

Deprecated: Use Provision_Cancel.ProtoReflect.Descriptor instead.

func (*Provision_Cancel) ProtoMessage

func (*Provision_Cancel) ProtoMessage()

func (*Provision_Cancel) ProtoReflect

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

func (*Provision_Cancel) Reset

func (x *Provision_Cancel) Reset()

func (*Provision_Cancel) String

func (x *Provision_Cancel) String() string

type Provision_Complete

type Provision_Complete struct {
	State     []byte      `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	Error     string      `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Resources []*Resource `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*Provision_Complete) Descriptor deprecated

func (*Provision_Complete) Descriptor() ([]byte, []int)

Deprecated: Use Provision_Complete.ProtoReflect.Descriptor instead.

func (*Provision_Complete) GetError

func (x *Provision_Complete) GetError() string

func (*Provision_Complete) GetResources

func (x *Provision_Complete) GetResources() []*Resource

func (*Provision_Complete) GetState

func (x *Provision_Complete) GetState() []byte

func (*Provision_Complete) ProtoMessage

func (*Provision_Complete) ProtoMessage()

func (*Provision_Complete) ProtoReflect

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

func (*Provision_Complete) Reset

func (x *Provision_Complete) Reset()

func (*Provision_Complete) String

func (x *Provision_Complete) String() string

type Provision_Metadata

type Provision_Metadata struct {
	CoderUrl            string              `protobuf:"bytes,1,opt,name=coder_url,json=coderUrl,proto3" json:"coder_url,omitempty"`
	WorkspaceTransition WorkspaceTransition `` /* 156-byte string literal not displayed */
	WorkspaceName       string              `protobuf:"bytes,3,opt,name=workspace_name,json=workspaceName,proto3" json:"workspace_name,omitempty"`
	WorkspaceOwner      string              `protobuf:"bytes,4,opt,name=workspace_owner,json=workspaceOwner,proto3" json:"workspace_owner,omitempty"`
	WorkspaceId         string              `protobuf:"bytes,5,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	WorkspaceOwnerId    string              `protobuf:"bytes,6,opt,name=workspace_owner_id,json=workspaceOwnerId,proto3" json:"workspace_owner_id,omitempty"`
	WorkspaceOwnerEmail string              `protobuf:"bytes,7,opt,name=workspace_owner_email,json=workspaceOwnerEmail,proto3" json:"workspace_owner_email,omitempty"`
	// contains filtered or unexported fields
}

func (*Provision_Metadata) Descriptor deprecated

func (*Provision_Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Provision_Metadata.ProtoReflect.Descriptor instead.

func (*Provision_Metadata) GetCoderUrl

func (x *Provision_Metadata) GetCoderUrl() string

func (*Provision_Metadata) GetWorkspaceId added in v0.5.3

func (x *Provision_Metadata) GetWorkspaceId() string

func (*Provision_Metadata) GetWorkspaceName

func (x *Provision_Metadata) GetWorkspaceName() string

func (*Provision_Metadata) GetWorkspaceOwner

func (x *Provision_Metadata) GetWorkspaceOwner() string

func (*Provision_Metadata) GetWorkspaceOwnerEmail added in v0.8.0

func (x *Provision_Metadata) GetWorkspaceOwnerEmail() string

func (*Provision_Metadata) GetWorkspaceOwnerId added in v0.5.3

func (x *Provision_Metadata) GetWorkspaceOwnerId() string

func (*Provision_Metadata) GetWorkspaceTransition

func (x *Provision_Metadata) GetWorkspaceTransition() WorkspaceTransition

func (*Provision_Metadata) ProtoMessage

func (*Provision_Metadata) ProtoMessage()

func (*Provision_Metadata) ProtoReflect

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

func (*Provision_Metadata) Reset

func (x *Provision_Metadata) Reset()

func (*Provision_Metadata) String

func (x *Provision_Metadata) String() string

type Provision_Request

type Provision_Request struct {

	// Types that are assignable to Type:
	//
	//	*Provision_Request_Start
	//	*Provision_Request_Cancel
	Type isProvision_Request_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Provision_Request) Descriptor deprecated

func (*Provision_Request) Descriptor() ([]byte, []int)

Deprecated: Use Provision_Request.ProtoReflect.Descriptor instead.

func (*Provision_Request) GetCancel

func (x *Provision_Request) GetCancel() *Provision_Cancel

func (*Provision_Request) GetStart

func (x *Provision_Request) GetStart() *Provision_Start

func (*Provision_Request) GetType

func (m *Provision_Request) GetType() isProvision_Request_Type

func (*Provision_Request) ProtoMessage

func (*Provision_Request) ProtoMessage()

func (*Provision_Request) ProtoReflect

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

func (*Provision_Request) Reset

func (x *Provision_Request) Reset()

func (*Provision_Request) String

func (x *Provision_Request) String() string

type Provision_Request_Cancel

type Provision_Request_Cancel struct {
	Cancel *Provision_Cancel `protobuf:"bytes,2,opt,name=cancel,proto3,oneof"`
}

type Provision_Request_Start

type Provision_Request_Start struct {
	Start *Provision_Start `protobuf:"bytes,1,opt,name=start,proto3,oneof"`
}

type Provision_Response

type Provision_Response struct {

	// Types that are assignable to Type:
	//
	//	*Provision_Response_Log
	//	*Provision_Response_Complete
	Type isProvision_Response_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Provision_Response) Descriptor deprecated

func (*Provision_Response) Descriptor() ([]byte, []int)

Deprecated: Use Provision_Response.ProtoReflect.Descriptor instead.

func (*Provision_Response) GetComplete

func (x *Provision_Response) GetComplete() *Provision_Complete

func (*Provision_Response) GetLog

func (x *Provision_Response) GetLog() *Log

func (*Provision_Response) GetType

func (m *Provision_Response) GetType() isProvision_Response_Type

func (*Provision_Response) ProtoMessage

func (*Provision_Response) ProtoMessage()

func (*Provision_Response) ProtoReflect

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

func (*Provision_Response) Reset

func (x *Provision_Response) Reset()

func (*Provision_Response) String

func (x *Provision_Response) String() string

type Provision_Response_Complete

type Provision_Response_Complete struct {
	Complete *Provision_Complete `protobuf:"bytes,2,opt,name=complete,proto3,oneof"`
}

type Provision_Response_Log

type Provision_Response_Log struct {
	Log *Log `protobuf:"bytes,1,opt,name=log,proto3,oneof"`
}

type Provision_Start

type Provision_Start struct {
	Directory       string              `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"`
	ParameterValues []*ParameterValue   `protobuf:"bytes,2,rep,name=parameter_values,json=parameterValues,proto3" json:"parameter_values,omitempty"`
	Metadata        *Provision_Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	State           []byte              `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	DryRun          bool                `protobuf:"varint,5,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	// contains filtered or unexported fields
}

func (*Provision_Start) Descriptor deprecated

func (*Provision_Start) Descriptor() ([]byte, []int)

Deprecated: Use Provision_Start.ProtoReflect.Descriptor instead.

func (*Provision_Start) GetDirectory

func (x *Provision_Start) GetDirectory() string

func (*Provision_Start) GetDryRun

func (x *Provision_Start) GetDryRun() bool

func (*Provision_Start) GetMetadata

func (x *Provision_Start) GetMetadata() *Provision_Metadata

func (*Provision_Start) GetParameterValues

func (x *Provision_Start) GetParameterValues() []*ParameterValue

func (*Provision_Start) GetState

func (x *Provision_Start) GetState() []byte

func (*Provision_Start) ProtoMessage

func (*Provision_Start) ProtoMessage()

func (*Provision_Start) ProtoReflect

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

func (*Provision_Start) Reset

func (x *Provision_Start) Reset()

func (*Provision_Start) String

func (x *Provision_Start) String() string

type Resource

type Resource struct {
	Name     string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type     string               `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Agents   []*Agent             `protobuf:"bytes,3,rep,name=agents,proto3" json:"agents,omitempty"`
	Metadata []*Resource_Metadata `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty"`
	Hide     bool                 `protobuf:"varint,5,opt,name=hide,proto3" json:"hide,omitempty"`
	Icon     string               `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"`
	// contains filtered or unexported fields
}

Resource represents created infrastructure.

func (*Resource) Descriptor deprecated

func (*Resource) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetAgents added in v0.4.1

func (x *Resource) GetAgents() []*Agent

func (*Resource) GetHide added in v0.8.15

func (x *Resource) GetHide() bool

func (*Resource) GetIcon added in v0.8.15

func (x *Resource) GetIcon() string

func (*Resource) GetMetadata added in v0.8.3

func (x *Resource) GetMetadata() []*Resource_Metadata

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetType

func (x *Resource) GetType() string

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_Metadata added in v0.8.3

type Resource_Metadata struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value     string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Sensitive bool   `protobuf:"varint,3,opt,name=sensitive,proto3" json:"sensitive,omitempty"`
	IsNull    bool   `protobuf:"varint,4,opt,name=is_null,json=isNull,proto3" json:"is_null,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource_Metadata) Descriptor deprecated added in v0.8.3

func (*Resource_Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Resource_Metadata.ProtoReflect.Descriptor instead.

func (*Resource_Metadata) GetIsNull added in v0.8.3

func (x *Resource_Metadata) GetIsNull() bool

func (*Resource_Metadata) GetKey added in v0.8.3

func (x *Resource_Metadata) GetKey() string

func (*Resource_Metadata) GetSensitive added in v0.8.3

func (x *Resource_Metadata) GetSensitive() bool

func (*Resource_Metadata) GetValue added in v0.8.3

func (x *Resource_Metadata) GetValue() string

func (*Resource_Metadata) ProtoMessage added in v0.8.3

func (*Resource_Metadata) ProtoMessage()

func (*Resource_Metadata) ProtoReflect added in v0.8.3

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

func (*Resource_Metadata) Reset added in v0.8.3

func (x *Resource_Metadata) Reset()

func (*Resource_Metadata) String added in v0.8.3

func (x *Resource_Metadata) String() string

type WorkspaceTransition

type WorkspaceTransition int32
const (
	WorkspaceTransition_START   WorkspaceTransition = 0
	WorkspaceTransition_STOP    WorkspaceTransition = 1
	WorkspaceTransition_DESTROY WorkspaceTransition = 2
)

func (WorkspaceTransition) Descriptor

func (WorkspaceTransition) Enum

func (WorkspaceTransition) EnumDescriptor deprecated

func (WorkspaceTransition) EnumDescriptor() ([]byte, []int)

Deprecated: Use WorkspaceTransition.Descriptor instead.

func (WorkspaceTransition) Number

func (WorkspaceTransition) String

func (x WorkspaceTransition) String() string

func (WorkspaceTransition) Type

Jump to

Keyboard shortcuts

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