pulumirpc

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pulumirpc is a generated protocol buffer package.

It is generated from these files:

analyzer.proto
engine.proto
errors.proto
language.proto
plugin.proto
provider.proto
resource.proto

It has these top-level messages:

AnalyzeRequest
AnalyzeResponse
AnalyzeFailure
LogRequest
ErrorCause
GetRequiredPluginsRequest
GetRequiredPluginsResponse
RunRequest
RunResponse
PluginInfo
PluginDependency
ConfigureRequest
ConfigureErrorMissingKeys
InvokeRequest
InvokeResponse
CheckRequest
CheckResponse
CheckFailure
DiffRequest
DiffResponse
CreateRequest
CreateResponse
ReadRequest
ReadResponse
UpdateRequest
UpdateResponse
DeleteRequest
ReadResourceRequest
ReadResourceResponse
RegisterResourceRequest
RegisterResourceResponse
RegisterResourceOutputsRequest

Index

Constants

This section is empty.

Variables

View Source
var DiffResponse_DiffChanges_name = map[int32]string{
	0: "DIFF_UNKNOWN",
	1: "DIFF_NONE",
	2: "DIFF_SOME",
}
View Source
var DiffResponse_DiffChanges_value = map[string]int32{
	"DIFF_UNKNOWN": 0,
	"DIFF_NONE":    1,
	"DIFF_SOME":    2,
}
View Source
var LogSeverity_name = map[int32]string{
	0: "DEBUG",
	1: "INFO",
	2: "WARNING",
	3: "ERROR",
}
View Source
var LogSeverity_value = map[string]int32{
	"DEBUG":   0,
	"INFO":    1,
	"WARNING": 2,
	"ERROR":   3,
}

Functions

func RegisterAnalyzerServer

func RegisterAnalyzerServer(s *grpc.Server, srv AnalyzerServer)

func RegisterEngineServer

func RegisterEngineServer(s *grpc.Server, srv EngineServer)

func RegisterLanguageRuntimeServer

func RegisterLanguageRuntimeServer(s *grpc.Server, srv LanguageRuntimeServer)

func RegisterResourceMonitorServer

func RegisterResourceMonitorServer(s *grpc.Server, srv ResourceMonitorServer)

func RegisterResourceProviderServer

func RegisterResourceProviderServer(s *grpc.Server, srv ResourceProviderServer)

Types

type AnalyzeFailure

type AnalyzeFailure struct {
	Property string `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
	Reason   string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
}

func (*AnalyzeFailure) Descriptor

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

func (*AnalyzeFailure) GetProperty

func (m *AnalyzeFailure) GetProperty() string

func (*AnalyzeFailure) GetReason

func (m *AnalyzeFailure) GetReason() string

func (*AnalyzeFailure) ProtoMessage

func (*AnalyzeFailure) ProtoMessage()

func (*AnalyzeFailure) Reset

func (m *AnalyzeFailure) Reset()

func (*AnalyzeFailure) String

func (m *AnalyzeFailure) String() string

type AnalyzeRequest

type AnalyzeRequest struct {
	Type       string                   `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=properties" json:"properties,omitempty"`
}

func (*AnalyzeRequest) Descriptor

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

func (*AnalyzeRequest) GetProperties

func (m *AnalyzeRequest) GetProperties() *google_protobuf1.Struct

func (*AnalyzeRequest) GetType

func (m *AnalyzeRequest) GetType() string

func (*AnalyzeRequest) ProtoMessage

func (*AnalyzeRequest) ProtoMessage()

func (*AnalyzeRequest) Reset

func (m *AnalyzeRequest) Reset()

func (*AnalyzeRequest) String

func (m *AnalyzeRequest) String() string

type AnalyzeResponse

type AnalyzeResponse struct {
	Failures []*AnalyzeFailure `protobuf:"bytes,1,rep,name=failures" json:"failures,omitempty"`
}

func (*AnalyzeResponse) Descriptor

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

func (*AnalyzeResponse) GetFailures

func (m *AnalyzeResponse) GetFailures() []*AnalyzeFailure

func (*AnalyzeResponse) ProtoMessage

func (*AnalyzeResponse) ProtoMessage()

func (*AnalyzeResponse) Reset

func (m *AnalyzeResponse) Reset()

func (*AnalyzeResponse) String

func (m *AnalyzeResponse) String() string

type AnalyzerClient

type AnalyzerClient interface {
	// Analyze analyzes a single resource object, and returns any errors that it finds.
	Analyze(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error)
	// GetPluginInfo returns generic information about this plugin, like its version.
	GetPluginInfo(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*PluginInfo, error)
}

func NewAnalyzerClient

func NewAnalyzerClient(cc *grpc.ClientConn) AnalyzerClient

type AnalyzerServer

type AnalyzerServer interface {
	// Analyze analyzes a single resource object, and returns any errors that it finds.
	Analyze(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error)
	// GetPluginInfo returns generic information about this plugin, like its version.
	GetPluginInfo(context.Context, *google_protobuf.Empty) (*PluginInfo, error)
}

type CheckFailure

type CheckFailure struct {
	Property string `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
	Reason   string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
}

func (*CheckFailure) Descriptor

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

func (*CheckFailure) GetProperty

func (m *CheckFailure) GetProperty() string

func (*CheckFailure) GetReason

func (m *CheckFailure) GetReason() string

func (*CheckFailure) ProtoMessage

func (*CheckFailure) ProtoMessage()

func (*CheckFailure) Reset

func (m *CheckFailure) Reset()

func (*CheckFailure) String

func (m *CheckFailure) String() string

type CheckRequest

type CheckRequest struct {
	Urn  string                   `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
	Olds *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=olds" json:"olds,omitempty"`
	News *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=news" json:"news,omitempty"`
}

func (*CheckRequest) Descriptor

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

func (*CheckRequest) GetNews

func (m *CheckRequest) GetNews() *google_protobuf1.Struct

func (*CheckRequest) GetOlds

func (m *CheckRequest) GetOlds() *google_protobuf1.Struct

func (*CheckRequest) GetUrn

func (m *CheckRequest) GetUrn() string

func (*CheckRequest) ProtoMessage

func (*CheckRequest) ProtoMessage()

func (*CheckRequest) Reset

func (m *CheckRequest) Reset()

func (*CheckRequest) String

func (m *CheckRequest) String() string

type CheckResponse

type CheckResponse struct {
	Inputs   *google_protobuf1.Struct `protobuf:"bytes,1,opt,name=inputs" json:"inputs,omitempty"`
	Failures []*CheckFailure          `protobuf:"bytes,2,rep,name=failures" json:"failures,omitempty"`
}

func (*CheckResponse) Descriptor

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

func (*CheckResponse) GetFailures

func (m *CheckResponse) GetFailures() []*CheckFailure

func (*CheckResponse) GetInputs

func (m *CheckResponse) GetInputs() *google_protobuf1.Struct

func (*CheckResponse) ProtoMessage

func (*CheckResponse) ProtoMessage()

func (*CheckResponse) Reset

func (m *CheckResponse) Reset()

func (*CheckResponse) String

func (m *CheckResponse) String() string

type ConfigureErrorMissingKeys

type ConfigureErrorMissingKeys struct {
	MissingKeys []*ConfigureErrorMissingKeys_MissingKey `protobuf:"bytes,1,rep,name=missingKeys" json:"missingKeys,omitempty"`
}

ConfigureErrorMissingKeys is sent as a Detail on an error returned from `ResourceProvider.Configure`.

func (*ConfigureErrorMissingKeys) Descriptor

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

func (*ConfigureErrorMissingKeys) GetMissingKeys

func (*ConfigureErrorMissingKeys) ProtoMessage

func (*ConfigureErrorMissingKeys) ProtoMessage()

func (*ConfigureErrorMissingKeys) Reset

func (m *ConfigureErrorMissingKeys) Reset()

func (*ConfigureErrorMissingKeys) String

func (m *ConfigureErrorMissingKeys) String() string

type ConfigureErrorMissingKeys_MissingKey

type ConfigureErrorMissingKeys_MissingKey struct {
	Name        string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
}

func (*ConfigureErrorMissingKeys_MissingKey) Descriptor

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

func (*ConfigureErrorMissingKeys_MissingKey) GetDescription

func (m *ConfigureErrorMissingKeys_MissingKey) GetDescription() string

func (*ConfigureErrorMissingKeys_MissingKey) GetName

func (*ConfigureErrorMissingKeys_MissingKey) ProtoMessage

func (*ConfigureErrorMissingKeys_MissingKey) ProtoMessage()

func (*ConfigureErrorMissingKeys_MissingKey) Reset

func (*ConfigureErrorMissingKeys_MissingKey) String

type ConfigureRequest

type ConfigureRequest struct {
	Variables map[string]string `` /* 138-byte string literal not displayed */
}

func (*ConfigureRequest) Descriptor

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

func (*ConfigureRequest) GetVariables

func (m *ConfigureRequest) GetVariables() map[string]string

func (*ConfigureRequest) ProtoMessage

func (*ConfigureRequest) ProtoMessage()

func (*ConfigureRequest) Reset

func (m *ConfigureRequest) Reset()

func (*ConfigureRequest) String

func (m *ConfigureRequest) String() string

type CreateRequest

type CreateRequest struct {
	Urn        string                   `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=properties" json:"properties,omitempty"`
}

func (*CreateRequest) Descriptor

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

func (*CreateRequest) GetProperties

func (m *CreateRequest) GetProperties() *google_protobuf1.Struct

func (*CreateRequest) GetUrn

func (m *CreateRequest) GetUrn() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Id         string                   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=properties" json:"properties,omitempty"`
}

func (*CreateResponse) Descriptor

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

func (*CreateResponse) GetId

func (m *CreateResponse) GetId() string

func (*CreateResponse) GetProperties

func (m *CreateResponse) GetProperties() *google_protobuf1.Struct

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) Reset

func (m *CreateResponse) Reset()

func (*CreateResponse) String

func (m *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {
	Id         string                   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Urn        string                   `protobuf:"bytes,2,opt,name=urn" json:"urn,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=properties" json:"properties,omitempty"`
}

func (*DeleteRequest) Descriptor

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

func (*DeleteRequest) GetId

func (m *DeleteRequest) GetId() string

func (*DeleteRequest) GetProperties

func (m *DeleteRequest) GetProperties() *google_protobuf1.Struct

func (*DeleteRequest) GetUrn

func (m *DeleteRequest) GetUrn() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

type DiffRequest

type DiffRequest struct {
	Id   string                   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Urn  string                   `protobuf:"bytes,2,opt,name=urn" json:"urn,omitempty"`
	Olds *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=olds" json:"olds,omitempty"`
	News *google_protobuf1.Struct `protobuf:"bytes,4,opt,name=news" json:"news,omitempty"`
}

func (*DiffRequest) Descriptor

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

func (*DiffRequest) GetId

func (m *DiffRequest) GetId() string

func (*DiffRequest) GetNews

func (m *DiffRequest) GetNews() *google_protobuf1.Struct

func (*DiffRequest) GetOlds

func (m *DiffRequest) GetOlds() *google_protobuf1.Struct

func (*DiffRequest) GetUrn

func (m *DiffRequest) GetUrn() string

func (*DiffRequest) ProtoMessage

func (*DiffRequest) ProtoMessage()

func (*DiffRequest) Reset

func (m *DiffRequest) Reset()

func (*DiffRequest) String

func (m *DiffRequest) String() string

type DiffResponse

type DiffResponse struct {
	Replaces            []string                 `protobuf:"bytes,1,rep,name=replaces" json:"replaces,omitempty"`
	Stables             []string                 `protobuf:"bytes,2,rep,name=stables" json:"stables,omitempty"`
	DeleteBeforeReplace bool                     `protobuf:"varint,3,opt,name=deleteBeforeReplace" json:"deleteBeforeReplace,omitempty"`
	Changes             DiffResponse_DiffChanges `protobuf:"varint,4,opt,name=changes,enum=pulumirpc.DiffResponse_DiffChanges" json:"changes,omitempty"`
}

func (*DiffResponse) Descriptor

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

func (*DiffResponse) GetChanges

func (m *DiffResponse) GetChanges() DiffResponse_DiffChanges

func (*DiffResponse) GetDeleteBeforeReplace

func (m *DiffResponse) GetDeleteBeforeReplace() bool

func (*DiffResponse) GetReplaces

func (m *DiffResponse) GetReplaces() []string

func (*DiffResponse) GetStables

func (m *DiffResponse) GetStables() []string

func (*DiffResponse) ProtoMessage

func (*DiffResponse) ProtoMessage()

func (*DiffResponse) Reset

func (m *DiffResponse) Reset()

func (*DiffResponse) String

func (m *DiffResponse) String() string

type DiffResponse_DiffChanges

type DiffResponse_DiffChanges int32
const (
	DiffResponse_DIFF_UNKNOWN DiffResponse_DiffChanges = 0
	DiffResponse_DIFF_NONE    DiffResponse_DiffChanges = 1
	DiffResponse_DIFF_SOME    DiffResponse_DiffChanges = 2
)

func (DiffResponse_DiffChanges) EnumDescriptor

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

func (DiffResponse_DiffChanges) String

func (x DiffResponse_DiffChanges) String() string

type EngineClient

type EngineClient interface {
	// Log logs a global message in the engine, including errors and warnings.
	Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}

func NewEngineClient

func NewEngineClient(cc *grpc.ClientConn) EngineClient

type EngineServer

type EngineServer interface {
	// Log logs a global message in the engine, including errors and warnings.
	Log(context.Context, *LogRequest) (*google_protobuf.Empty, error)
}

type ErrorCause

type ErrorCause struct {
	Message    string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	StackTrace string `protobuf:"bytes,2,opt,name=stackTrace" json:"stackTrace,omitempty"`
}

func (*ErrorCause) Descriptor

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

func (*ErrorCause) GetMessage

func (m *ErrorCause) GetMessage() string

func (*ErrorCause) GetStackTrace

func (m *ErrorCause) GetStackTrace() string

func (*ErrorCause) ProtoMessage

func (*ErrorCause) ProtoMessage()

func (*ErrorCause) Reset

func (m *ErrorCause) Reset()

func (*ErrorCause) String

func (m *ErrorCause) String() string

type GetRequiredPluginsRequest

type GetRequiredPluginsRequest struct {
	Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
	Pwd     string `protobuf:"bytes,2,opt,name=pwd" json:"pwd,omitempty"`
	Program string `protobuf:"bytes,3,opt,name=program" json:"program,omitempty"`
}

func (*GetRequiredPluginsRequest) Descriptor

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

func (*GetRequiredPluginsRequest) GetProgram

func (m *GetRequiredPluginsRequest) GetProgram() string

func (*GetRequiredPluginsRequest) GetProject

func (m *GetRequiredPluginsRequest) GetProject() string

func (*GetRequiredPluginsRequest) GetPwd

func (m *GetRequiredPluginsRequest) GetPwd() string

func (*GetRequiredPluginsRequest) ProtoMessage

func (*GetRequiredPluginsRequest) ProtoMessage()

func (*GetRequiredPluginsRequest) Reset

func (m *GetRequiredPluginsRequest) Reset()

func (*GetRequiredPluginsRequest) String

func (m *GetRequiredPluginsRequest) String() string

type GetRequiredPluginsResponse

type GetRequiredPluginsResponse struct {
	Plugins []*PluginDependency `protobuf:"bytes,1,rep,name=plugins" json:"plugins,omitempty"`
}

func (*GetRequiredPluginsResponse) Descriptor

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

func (*GetRequiredPluginsResponse) GetPlugins

func (m *GetRequiredPluginsResponse) GetPlugins() []*PluginDependency

func (*GetRequiredPluginsResponse) ProtoMessage

func (*GetRequiredPluginsResponse) ProtoMessage()

func (*GetRequiredPluginsResponse) Reset

func (m *GetRequiredPluginsResponse) Reset()

func (*GetRequiredPluginsResponse) String

func (m *GetRequiredPluginsResponse) String() string

type InvokeRequest

type InvokeRequest struct {
	Tok  string                   `protobuf:"bytes,1,opt,name=tok" json:"tok,omitempty"`
	Args *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=args" json:"args,omitempty"`
}

func (*InvokeRequest) Descriptor

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

func (*InvokeRequest) GetArgs

func (m *InvokeRequest) GetArgs() *google_protobuf1.Struct

func (*InvokeRequest) GetTok

func (m *InvokeRequest) GetTok() string

func (*InvokeRequest) ProtoMessage

func (*InvokeRequest) ProtoMessage()

func (*InvokeRequest) Reset

func (m *InvokeRequest) Reset()

func (*InvokeRequest) String

func (m *InvokeRequest) String() string

type InvokeResponse

type InvokeResponse struct {
	Return   *google_protobuf1.Struct `protobuf:"bytes,1,opt,name=return" json:"return,omitempty"`
	Failures []*CheckFailure          `protobuf:"bytes,2,rep,name=failures" json:"failures,omitempty"`
}

func (*InvokeResponse) Descriptor

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

func (*InvokeResponse) GetFailures

func (m *InvokeResponse) GetFailures() []*CheckFailure

func (*InvokeResponse) GetReturn

func (m *InvokeResponse) GetReturn() *google_protobuf1.Struct

func (*InvokeResponse) ProtoMessage

func (*InvokeResponse) ProtoMessage()

func (*InvokeResponse) Reset

func (m *InvokeResponse) Reset()

func (*InvokeResponse) String

func (m *InvokeResponse) String() string

type LanguageRuntimeClient

type LanguageRuntimeClient interface {
	// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
	GetRequiredPlugins(ctx context.Context, in *GetRequiredPluginsRequest, opts ...grpc.CallOption) (*GetRequiredPluginsResponse, error)
	// Run executes a program and returns its result.
	Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error)
	// GetPluginInfo returns generic information about this plugin, like its version.
	GetPluginInfo(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*PluginInfo, error)
}

func NewLanguageRuntimeClient

func NewLanguageRuntimeClient(cc *grpc.ClientConn) LanguageRuntimeClient

type LanguageRuntimeServer

type LanguageRuntimeServer interface {
	// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
	GetRequiredPlugins(context.Context, *GetRequiredPluginsRequest) (*GetRequiredPluginsResponse, error)
	// Run executes a program and returns its result.
	Run(context.Context, *RunRequest) (*RunResponse, error)
	// GetPluginInfo returns generic information about this plugin, like its version.
	GetPluginInfo(context.Context, *google_protobuf.Empty) (*PluginInfo, error)
}

type LogRequest

type LogRequest struct {
	Severity LogSeverity `protobuf:"varint,1,opt,name=severity,enum=pulumirpc.LogSeverity" json:"severity,omitempty"`
	Message  string      `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	Urn      string      `protobuf:"bytes,3,opt,name=urn" json:"urn,omitempty"`
}

func (*LogRequest) Descriptor

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

func (*LogRequest) GetMessage

func (m *LogRequest) GetMessage() string

func (*LogRequest) GetSeverity

func (m *LogRequest) GetSeverity() LogSeverity

func (*LogRequest) GetUrn

func (m *LogRequest) GetUrn() string

func (*LogRequest) ProtoMessage

func (*LogRequest) ProtoMessage()

func (*LogRequest) Reset

func (m *LogRequest) Reset()

func (*LogRequest) String

func (m *LogRequest) String() string

type LogSeverity

type LogSeverity int32

LogSeverity is the severity level of a log message. Errors are fatal; all others are informational.

const (
	LogSeverity_DEBUG   LogSeverity = 0
	LogSeverity_INFO    LogSeverity = 1
	LogSeverity_WARNING LogSeverity = 2
	LogSeverity_ERROR   LogSeverity = 3
)

func (LogSeverity) EnumDescriptor

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

func (LogSeverity) String

func (x LogSeverity) String() string

type PluginDependency

type PluginDependency struct {
	Name    string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Kind    string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
}

PluginDependency is information about a plugin that a program may depend upon.

func (*PluginDependency) Descriptor

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

func (*PluginDependency) GetKind

func (m *PluginDependency) GetKind() string

func (*PluginDependency) GetName

func (m *PluginDependency) GetName() string

func (*PluginDependency) GetVersion

func (m *PluginDependency) GetVersion() string

func (*PluginDependency) ProtoMessage

func (*PluginDependency) ProtoMessage()

func (*PluginDependency) Reset

func (m *PluginDependency) Reset()

func (*PluginDependency) String

func (m *PluginDependency) String() string

type PluginInfo

type PluginInfo struct {
	Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}

PluginInfo is meta-information about a plugin that is used by the system.

func (*PluginInfo) Descriptor

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

func (*PluginInfo) GetVersion

func (m *PluginInfo) GetVersion() string

func (*PluginInfo) ProtoMessage

func (*PluginInfo) ProtoMessage()

func (*PluginInfo) Reset

func (m *PluginInfo) Reset()

func (*PluginInfo) String

func (m *PluginInfo) String() string

type ReadRequest

type ReadRequest struct {
	Id         string                   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Urn        string                   `protobuf:"bytes,2,opt,name=urn" json:"urn,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=properties" json:"properties,omitempty"`
}

func (*ReadRequest) Descriptor

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

func (*ReadRequest) GetId

func (m *ReadRequest) GetId() string

func (*ReadRequest) GetProperties

func (m *ReadRequest) GetProperties() *google_protobuf1.Struct

func (*ReadRequest) GetUrn

func (m *ReadRequest) GetUrn() string

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset

func (m *ReadRequest) Reset()

func (*ReadRequest) String

func (m *ReadRequest) String() string

type ReadResourceRequest

type ReadResourceRequest struct {
	Id         string                   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Type       string                   `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
	Name       string                   `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Parent     string                   `protobuf:"bytes,4,opt,name=parent" json:"parent,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,5,opt,name=properties" json:"properties,omitempty"`
}

ReadResourceRequest contains enough information to uniquely qualify and read a resource's state.

func (*ReadResourceRequest) Descriptor

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

func (*ReadResourceRequest) GetId

func (m *ReadResourceRequest) GetId() string

func (*ReadResourceRequest) GetName

func (m *ReadResourceRequest) GetName() string

func (*ReadResourceRequest) GetParent

func (m *ReadResourceRequest) GetParent() string

func (*ReadResourceRequest) GetProperties

func (m *ReadResourceRequest) GetProperties() *google_protobuf1.Struct

func (*ReadResourceRequest) GetType

func (m *ReadResourceRequest) GetType() string

func (*ReadResourceRequest) ProtoMessage

func (*ReadResourceRequest) ProtoMessage()

func (*ReadResourceRequest) Reset

func (m *ReadResourceRequest) Reset()

func (*ReadResourceRequest) String

func (m *ReadResourceRequest) String() string

type ReadResourceResponse

type ReadResourceResponse struct {
	Urn        string                   `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=properties" json:"properties,omitempty"`
}

ReadResourceResponse contains the result of reading a resource's state.

func (*ReadResourceResponse) Descriptor

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

func (*ReadResourceResponse) GetProperties

func (m *ReadResourceResponse) GetProperties() *google_protobuf1.Struct

func (*ReadResourceResponse) GetUrn

func (m *ReadResourceResponse) GetUrn() string

func (*ReadResourceResponse) ProtoMessage

func (*ReadResourceResponse) ProtoMessage()

func (*ReadResourceResponse) Reset

func (m *ReadResourceResponse) Reset()

func (*ReadResourceResponse) String

func (m *ReadResourceResponse) String() string

type ReadResponse

type ReadResponse struct {
	Id         string                   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Properties *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=properties" json:"properties,omitempty"`
}

func (*ReadResponse) Descriptor

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

func (*ReadResponse) GetId

func (m *ReadResponse) GetId() string

func (*ReadResponse) GetProperties

func (m *ReadResponse) GetProperties() *google_protobuf1.Struct

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset

func (m *ReadResponse) Reset()

func (*ReadResponse) String

func (m *ReadResponse) String() string

type RegisterResourceOutputsRequest

type RegisterResourceOutputsRequest struct {
	Urn     string                   `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
	Outputs *google_protobuf1.Struct `protobuf:"bytes,2,opt,name=outputs" json:"outputs,omitempty"`
}

RegisterResourceOutputsRequest adds extra resource outputs created by the program after registration has occurred.

func (*RegisterResourceOutputsRequest) Descriptor

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

func (*RegisterResourceOutputsRequest) GetOutputs

func (*RegisterResourceOutputsRequest) GetUrn

func (*RegisterResourceOutputsRequest) ProtoMessage

func (*RegisterResourceOutputsRequest) ProtoMessage()

func (*RegisterResourceOutputsRequest) Reset

func (m *RegisterResourceOutputsRequest) Reset()

func (*RegisterResourceOutputsRequest) String

type RegisterResourceRequest

type RegisterResourceRequest struct {
	Type         string                   `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Name         string                   `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Parent       string                   `protobuf:"bytes,3,opt,name=parent" json:"parent,omitempty"`
	Custom       bool                     `protobuf:"varint,4,opt,name=custom" json:"custom,omitempty"`
	Object       *google_protobuf1.Struct `protobuf:"bytes,5,opt,name=object" json:"object,omitempty"`
	Protect      bool                     `protobuf:"varint,6,opt,name=protect" json:"protect,omitempty"`
	Dependencies []string                 `protobuf:"bytes,7,rep,name=dependencies" json:"dependencies,omitempty"`
}

RegisterResourceRequest contains information about a resource object that was newly allocated.

func (*RegisterResourceRequest) Descriptor

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

func (*RegisterResourceRequest) GetCustom

func (m *RegisterResourceRequest) GetCustom() bool

func (*RegisterResourceRequest) GetDependencies

func (m *RegisterResourceRequest) GetDependencies() []string

func (*RegisterResourceRequest) GetName

func (m *RegisterResourceRequest) GetName() string

func (*RegisterResourceRequest) GetObject

func (*RegisterResourceRequest) GetParent

func (m *RegisterResourceRequest) GetParent() string

func (*RegisterResourceRequest) GetProtect

func (m *RegisterResourceRequest) GetProtect() bool

func (*RegisterResourceRequest) GetType

func (m *RegisterResourceRequest) GetType() string

func (*RegisterResourceRequest) ProtoMessage

func (*RegisterResourceRequest) ProtoMessage()

func (*RegisterResourceRequest) Reset

func (m *RegisterResourceRequest) Reset()

func (*RegisterResourceRequest) String

func (m *RegisterResourceRequest) String() string

type RegisterResourceResponse

type RegisterResourceResponse struct {
	Urn     string                   `protobuf:"bytes,1,opt,name=urn" json:"urn,omitempty"`
	Id      string                   `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Object  *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=object" json:"object,omitempty"`
	Stable  bool                     `protobuf:"varint,4,opt,name=stable" json:"stable,omitempty"`
	Stables []string                 `protobuf:"bytes,5,rep,name=stables" json:"stables,omitempty"`
}

RegisterResourceResponse is returned by the engine after a resource has finished being initialized. It includes the auto-assigned URN, the provider-assigned ID, and any other properties initialized by the engine.

func (*RegisterResourceResponse) Descriptor

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

func (*RegisterResourceResponse) GetId

func (m *RegisterResourceResponse) GetId() string

func (*RegisterResourceResponse) GetObject

func (*RegisterResourceResponse) GetStable

func (m *RegisterResourceResponse) GetStable() bool

func (*RegisterResourceResponse) GetStables

func (m *RegisterResourceResponse) GetStables() []string

func (*RegisterResourceResponse) GetUrn

func (m *RegisterResourceResponse) GetUrn() string

func (*RegisterResourceResponse) ProtoMessage

func (*RegisterResourceResponse) ProtoMessage()

func (*RegisterResourceResponse) Reset

func (m *RegisterResourceResponse) Reset()

func (*RegisterResourceResponse) String

func (m *RegisterResourceResponse) String() string

type ResourceMonitorClient

type ResourceMonitorClient interface {
	Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error)
	ReadResource(ctx context.Context, in *ReadResourceRequest, opts ...grpc.CallOption) (*ReadResourceResponse, error)
	RegisterResource(ctx context.Context, in *RegisterResourceRequest, opts ...grpc.CallOption) (*RegisterResourceResponse, error)
	RegisterResourceOutputs(ctx context.Context, in *RegisterResourceOutputsRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}

func NewResourceMonitorClient

func NewResourceMonitorClient(cc *grpc.ClientConn) ResourceMonitorClient

type ResourceProviderClient

type ResourceProviderClient interface {
	// Configure configures the resource provider with "globals" that control its behavior.
	Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	// Invoke dynamically executes a built-in function in the provider.
	Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error)
	// Check validates that the given property bag is valid for a resource of the given type and returns the inputs
	// that should be passed to successive calls to Diff, Create, or Update for this resource. As a rule, the provider
	// inputs returned by a call to Check should preserve the original representation of the properties as present in
	// the program inputs. Though this rule is not required for correctness, violations thereof can negatively impact
	// the end-user experience, as the provider inputs are using for detecting and rendering diffs.
	Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
	// Diff checks what impacts a hypothetical update will have on the resource's properties.
	Diff(ctx context.Context, in *DiffRequest, opts ...grpc.CallOption) (*DiffResponse, error)
	// Create allocates a new instance of the provided resource and returns its unique ID afterwards.  (The input ID
	// must be blank.)  If this call fails, the resource must not have been created (i.e., it is "transacational").
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	// Read the current live state associated with a resource.  Enough state must be include in the inputs to uniquely
	// identify the resource; this is typically just the resource ID, but may also include some properties.
	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
	// Update updates an existing resource with new values.
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	// Delete tears down an existing resource with the given ID.  If it fails, the resource is assumed to still exist.
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	// GetPluginInfo returns generic information about this plugin, like its version.
	GetPluginInfo(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*PluginInfo, error)
}

func NewResourceProviderClient

func NewResourceProviderClient(cc *grpc.ClientConn) ResourceProviderClient

type ResourceProviderServer

type ResourceProviderServer interface {
	// Configure configures the resource provider with "globals" that control its behavior.
	Configure(context.Context, *ConfigureRequest) (*google_protobuf.Empty, error)
	// Invoke dynamically executes a built-in function in the provider.
	Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error)
	// Check validates that the given property bag is valid for a resource of the given type and returns the inputs
	// that should be passed to successive calls to Diff, Create, or Update for this resource. As a rule, the provider
	// inputs returned by a call to Check should preserve the original representation of the properties as present in
	// the program inputs. Though this rule is not required for correctness, violations thereof can negatively impact
	// the end-user experience, as the provider inputs are using for detecting and rendering diffs.
	Check(context.Context, *CheckRequest) (*CheckResponse, error)
	// Diff checks what impacts a hypothetical update will have on the resource's properties.
	Diff(context.Context, *DiffRequest) (*DiffResponse, error)
	// Create allocates a new instance of the provided resource and returns its unique ID afterwards.  (The input ID
	// must be blank.)  If this call fails, the resource must not have been created (i.e., it is "transacational").
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// Read the current live state associated with a resource.  Enough state must be include in the inputs to uniquely
	// identify the resource; this is typically just the resource ID, but may also include some properties.
	Read(context.Context, *ReadRequest) (*ReadResponse, error)
	// Update updates an existing resource with new values.
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// Delete tears down an existing resource with the given ID.  If it fails, the resource is assumed to still exist.
	Delete(context.Context, *DeleteRequest) (*google_protobuf.Empty, error)
	// GetPluginInfo returns generic information about this plugin, like its version.
	GetPluginInfo(context.Context, *google_protobuf.Empty) (*PluginInfo, error)
}

type RunRequest

type RunRequest struct {
	Project        string            `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
	Stack          string            `protobuf:"bytes,2,opt,name=stack" json:"stack,omitempty"`
	Pwd            string            `protobuf:"bytes,3,opt,name=pwd" json:"pwd,omitempty"`
	Program        string            `protobuf:"bytes,4,opt,name=program" json:"program,omitempty"`
	Args           []string          `protobuf:"bytes,5,rep,name=args" json:"args,omitempty"`
	Config         map[string]string `` /* 132-byte string literal not displayed */
	DryRun         bool              `protobuf:"varint,7,opt,name=dryRun" json:"dryRun,omitempty"`
	Parallel       int32             `protobuf:"varint,8,opt,name=parallel" json:"parallel,omitempty"`
	MonitorAddress string            `protobuf:"bytes,9,opt,name=monitor_address,json=monitorAddress" json:"monitor_address,omitempty"`
}

RunRequest asks the interpreter to execute a program.

func (*RunRequest) Descriptor

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

func (*RunRequest) GetArgs

func (m *RunRequest) GetArgs() []string

func (*RunRequest) GetConfig

func (m *RunRequest) GetConfig() map[string]string

func (*RunRequest) GetDryRun

func (m *RunRequest) GetDryRun() bool

func (*RunRequest) GetMonitorAddress

func (m *RunRequest) GetMonitorAddress() string

func (*RunRequest) GetParallel

func (m *RunRequest) GetParallel() int32

func (*RunRequest) GetProgram

func (m *RunRequest) GetProgram() string

func (*RunRequest) GetProject

func (m *RunRequest) GetProject() string

func (*RunRequest) GetPwd

func (m *RunRequest) GetPwd() string

func (*RunRequest) GetStack

func (m *RunRequest) GetStack() string

func (*RunRequest) ProtoMessage

func (*RunRequest) ProtoMessage()

func (*RunRequest) Reset

func (m *RunRequest) Reset()

func (*RunRequest) String

func (m *RunRequest) String() string

type RunResponse

type RunResponse struct {
	Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
}

RunResponse is the response back from the interpreter/source back to the monitor.

func (*RunResponse) Descriptor

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

func (*RunResponse) GetError

func (m *RunResponse) GetError() string

func (*RunResponse) ProtoMessage

func (*RunResponse) ProtoMessage()

func (*RunResponse) Reset

func (m *RunResponse) Reset()

func (*RunResponse) String

func (m *RunResponse) String() string

type UpdateRequest

type UpdateRequest struct {
	Id   string                   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Urn  string                   `protobuf:"bytes,2,opt,name=urn" json:"urn,omitempty"`
	Olds *google_protobuf1.Struct `protobuf:"bytes,3,opt,name=olds" json:"olds,omitempty"`
	News *google_protobuf1.Struct `protobuf:"bytes,4,opt,name=news" json:"news,omitempty"`
}

func (*UpdateRequest) Descriptor

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

func (*UpdateRequest) GetId

func (m *UpdateRequest) GetId() string

func (*UpdateRequest) GetNews

func (m *UpdateRequest) GetNews() *google_protobuf1.Struct

func (*UpdateRequest) GetOlds

func (m *UpdateRequest) GetOlds() *google_protobuf1.Struct

func (*UpdateRequest) GetUrn

func (m *UpdateRequest) GetUrn() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
	Properties *google_protobuf1.Struct `protobuf:"bytes,1,opt,name=properties" json:"properties,omitempty"`
}

func (*UpdateResponse) Descriptor

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

func (*UpdateResponse) GetProperties

func (m *UpdateResponse) GetProperties() *google_protobuf1.Struct

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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