blueprint

package
v0.0.0-...-c9f1cb7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MPL-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BlueprintPhase_name = map[int32]string{
		0: "BLUEPRINT_PHASE_UNSPECIFIED",
		1: "BLUEPRINT_PHASE_SETUP",
		2: "BLUEPRINT_PHASE_RUN",
	}
	BlueprintPhase_value = map[string]int32{
		"BLUEPRINT_PHASE_UNSPECIFIED": 0,
		"BLUEPRINT_PHASE_SETUP":       1,
		"BLUEPRINT_PHASE_RUN":         2,
	}
)

Enum value maps for BlueprintPhase.

View Source
var (
	FileChangeOp_name = map[int32]string{
		0: "FILE_CHANGE_OP_UNSPECIFIED",
		1: "FILE_CHANGE_OP_CREATE",
		2: "FILE_CHANGE_OP_DELETE",
		3: "FILE_CHANGE_OP_UPDATE",
	}
	FileChangeOp_value = map[string]int32{
		"FILE_CHANGE_OP_UNSPECIFIED": 0,
		"FILE_CHANGE_OP_CREATE":      1,
		"FILE_CHANGE_OP_DELETE":      2,
		"FILE_CHANGE_OP_UPDATE":      3,
	}
)

Enum value maps for FileChangeOp.

View Source
var BlueprintProvider_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hostfactor.blueprint.BlueprintProvider",
	HandlerType: (*BlueprintProviderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateBlueprint",
			Handler:    _BlueprintProvider_GenerateBlueprint_Handler,
		},
		{
			MethodName: "GetBlueprintSchema",
			Handler:    _BlueprintProvider_GetBlueprintSchema_Handler,
		},
		{
			MethodName: "ValidateBlueprintData",
			Handler:    _BlueprintProvider_ValidateBlueprintData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blueprint/blueprint_provider.proto",
}

BlueprintProvider_ServiceDesc is the grpc.ServiceDesc for BlueprintProvider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_blueprint_blueprint_proto protoreflect.FileDescriptor
View Source
var File_blueprint_blueprint_provider_proto protoreflect.FileDescriptor
View Source
var File_blueprint_file_trigger_proto protoreflect.FileDescriptor
View Source
var File_blueprint_setup_proto protoreflect.FileDescriptor

Functions

func RegisterBlueprintProviderServer

func RegisterBlueprintProviderServer(s grpc.ServiceRegistrar, srv BlueprintProviderServer)

Types

type Blueprint

type Blueprint struct {
	Phases              *BlueprintPhases     `protobuf:"bytes,1,opt,name=phases,proto3" json:"phases,omitempty"`
	Args                string               `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	ReadyCheck          *ReadyCheck          `protobuf:"bytes,3,opt,name=ready_check,proto3" json:"ready_check,omitempty"`
	Communication       *Communication       `protobuf:"bytes,4,opt,name=communication,proto3" json:"communication,omitempty"`
	ConfigurationVolume *ConfigurationVolume `protobuf:"bytes,5,opt,name=configuration_volume,proto3" json:"configuration_volume,omitempty"`
	EnvVars             []*EnvVar            `protobuf:"bytes,6,rep,name=env_vars,proto3" json:"env_vars,omitempty"`
	Image               *Image               `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"`
	// The settings of the configuration rendered as JSON. The blueprint provider may mutate the original settings string
	// passed in in some way.
	Settings string `protobuf:"bytes,8,opt,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*Blueprint) Descriptor deprecated

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

Deprecated: Use Blueprint.ProtoReflect.Descriptor instead.

func (*Blueprint) GetArgs

func (x *Blueprint) GetArgs() string

func (*Blueprint) GetCommunication

func (x *Blueprint) GetCommunication() *Communication

func (*Blueprint) GetConfigurationVolume

func (x *Blueprint) GetConfigurationVolume() *ConfigurationVolume

func (*Blueprint) GetEnvVars

func (x *Blueprint) GetEnvVars() []*EnvVar

func (*Blueprint) GetImage

func (x *Blueprint) GetImage() *Image

func (*Blueprint) GetPhases

func (x *Blueprint) GetPhases() *BlueprintPhases

func (*Blueprint) GetReadyCheck

func (x *Blueprint) GetReadyCheck() *ReadyCheck

func (*Blueprint) GetSettings

func (x *Blueprint) GetSettings() string

func (*Blueprint) ProtoMessage

func (*Blueprint) ProtoMessage()

func (*Blueprint) ProtoReflect

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

func (*Blueprint) Reset

func (x *Blueprint) Reset()

func (*Blueprint) String

func (x *Blueprint) String() string

type BlueprintData

type BlueprintData struct {

	// User configuration. Any edits made to these settings need to be returned in the Blueprint.
	Settings      string                      `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"`
	SelectedFiles []*filesystem.FileSelection `protobuf:"bytes,2,rep,name=selected_files,proto3" json:"selected_files,omitempty"`
	// The user-specified version for the application.
	Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// Data about the server that the blueprint will be run on.
	ServerData *ServerData `protobuf:"bytes,4,opt,name=server_data,proto3" json:"server_data,omitempty"`
	// contains filtered or unexported fields
}

func (*BlueprintData) Descriptor deprecated

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

Deprecated: Use BlueprintData.ProtoReflect.Descriptor instead.

func (*BlueprintData) GetSelectedFiles

func (x *BlueprintData) GetSelectedFiles() []*filesystem.FileSelection

func (*BlueprintData) GetServerData

func (x *BlueprintData) GetServerData() *ServerData

func (*BlueprintData) GetSettings

func (x *BlueprintData) GetSettings() string

func (*BlueprintData) GetVersion

func (x *BlueprintData) GetVersion() *Version

func (*BlueprintData) ProtoMessage

func (*BlueprintData) ProtoMessage()

func (*BlueprintData) ProtoReflect

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

func (*BlueprintData) Reset

func (x *BlueprintData) Reset()

func (*BlueprintData) String

func (x *BlueprintData) String() string

type BlueprintPhase

type BlueprintPhase int32
const (
	BlueprintPhase_BLUEPRINT_PHASE_UNSPECIFIED BlueprintPhase = 0
	BlueprintPhase_BLUEPRINT_PHASE_SETUP       BlueprintPhase = 1
	BlueprintPhase_BLUEPRINT_PHASE_RUN         BlueprintPhase = 2
)

func (BlueprintPhase) Descriptor

func (BlueprintPhase) Enum

func (x BlueprintPhase) Enum() *BlueprintPhase

func (BlueprintPhase) EnumDescriptor deprecated

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

Deprecated: Use BlueprintPhase.Descriptor instead.

func (BlueprintPhase) Number

func (BlueprintPhase) String

func (x BlueprintPhase) String() string

func (BlueprintPhase) Type

type BlueprintPhases

type BlueprintPhases struct {
	Setup *SetupPhase `protobuf:"bytes,1,opt,name=setup,proto3" json:"setup,omitempty"`
	Run   *RunPhase   `protobuf:"bytes,2,opt,name=run,proto3" json:"run,omitempty"`
	// contains filtered or unexported fields
}

func (*BlueprintPhases) Descriptor deprecated

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

Deprecated: Use BlueprintPhases.ProtoReflect.Descriptor instead.

func (*BlueprintPhases) GetRun

func (x *BlueprintPhases) GetRun() *RunPhase

func (*BlueprintPhases) GetSetup

func (x *BlueprintPhases) GetSetup() *SetupPhase

func (*BlueprintPhases) ProtoMessage

func (*BlueprintPhases) ProtoMessage()

func (*BlueprintPhases) ProtoReflect

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

func (*BlueprintPhases) Reset

func (x *BlueprintPhases) Reset()

func (*BlueprintPhases) String

func (x *BlueprintPhases) String() string

type BlueprintProviderClient

type BlueprintProviderClient interface {
	GenerateBlueprint(ctx context.Context, in *GenerateBlueprint_Request, opts ...grpc.CallOption) (*GenerateBlueprint_Response, error)
	GetBlueprintSchema(ctx context.Context, in *GetBlueprintSchema_Request, opts ...grpc.CallOption) (*GetBlueprintSchema_Response, error)
	ValidateBlueprintData(ctx context.Context, in *ValidateBlueprintData_Request, opts ...grpc.CallOption) (*ValidateBlueprintData_Response, error)
}

BlueprintProviderClient is the client API for BlueprintProvider service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type BlueprintProviderServer

BlueprintProviderServer is the server API for BlueprintProvider service. All implementations should embed UnimplementedBlueprintProviderServer for forward compatibility

type BlueprintSchema

type BlueprintSchema struct {
	ProviderConfig *providerconfig.ProviderConfig `protobuf:"bytes,1,opt,name=provider_config,proto3" json:"provider_config,omitempty"`
	// The JSON schema for the custom settings of the blueprint. The BlueprintData.settings that are passed will be
	// guaranteed to conform to this JSON schema. This JSON schema is enforced on the frontend and must be set.
	Settings []byte `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*BlueprintSchema) Descriptor deprecated

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

Deprecated: Use BlueprintSchema.ProtoReflect.Descriptor instead.

func (*BlueprintSchema) GetProviderConfig

func (x *BlueprintSchema) GetProviderConfig() *providerconfig.ProviderConfig

func (*BlueprintSchema) GetSettings

func (x *BlueprintSchema) GetSettings() []byte

func (*BlueprintSchema) ProtoMessage

func (*BlueprintSchema) ProtoMessage()

func (*BlueprintSchema) ProtoReflect

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

func (*BlueprintSchema) Reset

func (x *BlueprintSchema) Reset()

func (*BlueprintSchema) String

func (x *BlueprintSchema) String() string

type Communication

type Communication struct {
	Endpoint *Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*Communication) Descriptor deprecated

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

Deprecated: Use Communication.ProtoReflect.Descriptor instead.

func (*Communication) GetEndpoint

func (x *Communication) GetEndpoint() *Endpoint

func (*Communication) ProtoMessage

func (*Communication) ProtoMessage()

func (*Communication) ProtoReflect

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

func (*Communication) Reset

func (x *Communication) Reset()

func (*Communication) String

func (x *Communication) String() string

type ConfigurationVolume

type ConfigurationVolume struct {

	// The filename mapped to the contents of the file. The filename should be in the form of both name and extension e.g.
	// "save.zip".
	Data map[string]string `` /* 149-byte string literal not displayed */
	// The absolute path to the directory that the configuration is placed into e.g. /my/config
	Dir string `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigurationVolume) Descriptor deprecated

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

Deprecated: Use ConfigurationVolume.ProtoReflect.Descriptor instead.

func (*ConfigurationVolume) GetData

func (x *ConfigurationVolume) GetData() map[string]string

func (*ConfigurationVolume) GetDir

func (x *ConfigurationVolume) GetDir() string

func (*ConfigurationVolume) ProtoMessage

func (*ConfigurationVolume) ProtoMessage()

func (*ConfigurationVolume) ProtoReflect

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

func (*ConfigurationVolume) Reset

func (x *ConfigurationVolume) Reset()

func (*ConfigurationVolume) String

func (x *ConfigurationVolume) String() string

type Endpoint

type Endpoint struct {
	Port     uint32           `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	Protocol network.Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=hostfactor.network.Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetPort

func (x *Endpoint) GetPort() uint32

func (*Endpoint) GetProtocol

func (x *Endpoint) GetProtocol() network.Protocol

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

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

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

type EnvVar

type EnvVar struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*EnvVar) Descriptor deprecated

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

Deprecated: Use EnvVar.ProtoReflect.Descriptor instead.

func (*EnvVar) GetName

func (x *EnvVar) GetName() string

func (*EnvVar) GetValue

func (x *EnvVar) GetValue() string

func (*EnvVar) ProtoMessage

func (*EnvVar) ProtoMessage()

func (*EnvVar) ProtoReflect

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

func (*EnvVar) Reset

func (x *EnvVar) Reset()

func (*EnvVar) String

func (x *EnvVar) String() string

type FileChangeOp

type FileChangeOp int32
const (
	FileChangeOp_FILE_CHANGE_OP_UNSPECIFIED FileChangeOp = 0
	FileChangeOp_FILE_CHANGE_OP_CREATE      FileChangeOp = 1
	FileChangeOp_FILE_CHANGE_OP_DELETE      FileChangeOp = 2
	FileChangeOp_FILE_CHANGE_OP_UPDATE      FileChangeOp = 3
)

func (FileChangeOp) Descriptor

func (FileChangeOp) Enum

func (x FileChangeOp) Enum() *FileChangeOp

func (FileChangeOp) EnumDescriptor deprecated

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

Deprecated: Use FileChangeOp.Descriptor instead.

func (FileChangeOp) Number

func (FileChangeOp) String

func (x FileChangeOp) String() string

func (FileChangeOp) Type

type FileTrigger

type FileTrigger struct {
	When []*FileTriggerCondition `protobuf:"bytes,1,rep,name=when,proto3" json:"when,omitempty"`
	Then []*FileTriggerAction    `protobuf:"bytes,2,rep,name=then,proto3" json:"then,omitempty"`
	// contains filtered or unexported fields
}

func (*FileTrigger) Descriptor deprecated

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

Deprecated: Use FileTrigger.ProtoReflect.Descriptor instead.

func (*FileTrigger) GetThen

func (x *FileTrigger) GetThen() []*FileTriggerAction

func (*FileTrigger) GetWhen

func (x *FileTrigger) GetWhen() []*FileTriggerCondition

func (*FileTrigger) ProtoMessage

func (*FileTrigger) ProtoMessage()

func (*FileTrigger) ProtoReflect

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

func (*FileTrigger) Reset

func (x *FileTrigger) Reset()

func (*FileTrigger) String

func (x *FileTrigger) String() string

type FileTriggerAction

type FileTriggerAction struct {
	Zip      *actions.ZipFile      `protobuf:"bytes,1,opt,name=zip,proto3" json:"zip,omitempty"`
	Unzip    *actions.UnzipFile    `protobuf:"bytes,2,opt,name=unzip,proto3" json:"unzip,omitempty"`
	Upload   *actions.UploadFile   `protobuf:"bytes,3,opt,name=upload,proto3" json:"upload,omitempty"`
	Download *actions.DownloadFile `protobuf:"bytes,4,opt,name=download,proto3" json:"download,omitempty"`
	Rename   *actions.RenameFiles  `protobuf:"bytes,5,opt,name=rename,proto3" json:"rename,omitempty"`
	Extract  *actions.ExtractFiles `protobuf:"bytes,6,opt,name=extract,proto3" json:"extract,omitempty"`
	// contains filtered or unexported fields
}

func (*FileTriggerAction) Descriptor deprecated

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

Deprecated: Use FileTriggerAction.ProtoReflect.Descriptor instead.

func (*FileTriggerAction) GetDownload

func (x *FileTriggerAction) GetDownload() *actions.DownloadFile

func (*FileTriggerAction) GetExtract

func (x *FileTriggerAction) GetExtract() *actions.ExtractFiles

func (*FileTriggerAction) GetRename

func (x *FileTriggerAction) GetRename() *actions.RenameFiles

func (*FileTriggerAction) GetUnzip

func (x *FileTriggerAction) GetUnzip() *actions.UnzipFile

func (*FileTriggerAction) GetUpload

func (x *FileTriggerAction) GetUpload() *actions.UploadFile

func (*FileTriggerAction) GetZip

func (x *FileTriggerAction) GetZip() *actions.ZipFile

func (*FileTriggerAction) ProtoMessage

func (*FileTriggerAction) ProtoMessage()

func (*FileTriggerAction) ProtoReflect

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

func (*FileTriggerAction) Reset

func (x *FileTriggerAction) Reset()

func (*FileTriggerAction) String

func (x *FileTriggerAction) String() string

type FileTriggerCondition

type FileTriggerCondition struct {

	// True if the file change matches the specified matcher.
	Matches *filesystem.FileMatcher `protobuf:"bytes,1,opt,name=matches,proto3" json:"matches,omitempty"`
	// True if the file change does not match the specified matcher.
	DoesntMatch *filesystem.FileMatcher `protobuf:"bytes,2,opt,name=doesnt_match,proto3" json:"doesnt_match,omitempty"`
	// True if one of the specified FileChangeOps match.
	Op []FileChangeOp `protobuf:"varint,3,rep,packed,name=op,proto3,enum=hostfactor.blueprint.FileChangeOp" json:"op,omitempty"`
	// The directories that the condition will be applied to.
	Directories []string `protobuf:"bytes,4,rep,name=directories,proto3" json:"directories,omitempty"`
	// contains filtered or unexported fields
}

Determines if a file trigger should execute. All fields must evaluate to true for this condition to be met.

func (*FileTriggerCondition) Descriptor deprecated

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

Deprecated: Use FileTriggerCondition.ProtoReflect.Descriptor instead.

func (*FileTriggerCondition) GetDirectories

func (x *FileTriggerCondition) GetDirectories() []string

func (*FileTriggerCondition) GetDoesntMatch

func (x *FileTriggerCondition) GetDoesntMatch() *filesystem.FileMatcher

func (*FileTriggerCondition) GetMatches

func (x *FileTriggerCondition) GetMatches() *filesystem.FileMatcher

func (*FileTriggerCondition) GetOp

func (x *FileTriggerCondition) GetOp() []FileChangeOp

func (*FileTriggerCondition) ProtoMessage

func (*FileTriggerCondition) ProtoMessage()

func (*FileTriggerCondition) ProtoReflect

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

func (*FileTriggerCondition) Reset

func (x *FileTriggerCondition) Reset()

func (*FileTriggerCondition) String

func (x *FileTriggerCondition) String() string

type FileTriggerTemplateData

type FileTriggerTemplateData struct {

	// The directory portion of a file change e.g. for /opt/files/save.zip, this field would be "/opt/files".
	Dir string `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"`
	// The name of a file plus the extension e.g. save.zip.
	Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	// The extension to a file plus the dot e.g. for save.zip, this field would be ".zip".
	Ext string `protobuf:"bytes,3,opt,name=ext,proto3" json:"ext,omitempty"`
	// The absolute path to a file e.g. /opt/files/save.zip.
	Abs string `protobuf:"bytes,4,opt,name=abs,proto3" json:"abs,omitempty"`
	// The name of the file minus the extension e.g. for save.zip, this field would be "save".
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FileTriggerTemplateData) Descriptor deprecated

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

Deprecated: Use FileTriggerTemplateData.ProtoReflect.Descriptor instead.

func (*FileTriggerTemplateData) GetAbs

func (x *FileTriggerTemplateData) GetAbs() string

func (*FileTriggerTemplateData) GetDir

func (x *FileTriggerTemplateData) GetDir() string

func (*FileTriggerTemplateData) GetExt

func (x *FileTriggerTemplateData) GetExt() string

func (*FileTriggerTemplateData) GetFilename

func (x *FileTriggerTemplateData) GetFilename() string

func (*FileTriggerTemplateData) GetName

func (x *FileTriggerTemplateData) GetName() string

func (*FileTriggerTemplateData) ProtoMessage

func (*FileTriggerTemplateData) ProtoMessage()

func (*FileTriggerTemplateData) ProtoReflect

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

func (*FileTriggerTemplateData) Reset

func (x *FileTriggerTemplateData) Reset()

func (*FileTriggerTemplateData) String

func (x *FileTriggerTemplateData) String() string

type GenerateBlueprint

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

func (*GenerateBlueprint) Descriptor deprecated

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

Deprecated: Use GenerateBlueprint.ProtoReflect.Descriptor instead.

func (*GenerateBlueprint) ProtoMessage

func (*GenerateBlueprint) ProtoMessage()

func (*GenerateBlueprint) ProtoReflect

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

func (*GenerateBlueprint) Reset

func (x *GenerateBlueprint) Reset()

func (*GenerateBlueprint) String

func (x *GenerateBlueprint) String() string

type GenerateBlueprint_Request

type GenerateBlueprint_Request struct {

	// The data that is applied to render the blueprint.
	Data *BlueprintData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateBlueprint_Request) Descriptor deprecated

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

Deprecated: Use GenerateBlueprint_Request.ProtoReflect.Descriptor instead.

func (*GenerateBlueprint_Request) GetData

func (*GenerateBlueprint_Request) ProtoMessage

func (*GenerateBlueprint_Request) ProtoMessage()

func (*GenerateBlueprint_Request) ProtoReflect

func (*GenerateBlueprint_Request) Reset

func (x *GenerateBlueprint_Request) Reset()

func (*GenerateBlueprint_Request) String

func (x *GenerateBlueprint_Request) String() string

type GenerateBlueprint_Response

type GenerateBlueprint_Response struct {
	Blueprint *Blueprint `protobuf:"bytes,1,opt,name=blueprint,proto3" json:"blueprint,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateBlueprint_Response) Descriptor deprecated

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

Deprecated: Use GenerateBlueprint_Response.ProtoReflect.Descriptor instead.

func (*GenerateBlueprint_Response) GetBlueprint

func (x *GenerateBlueprint_Response) GetBlueprint() *Blueprint

func (*GenerateBlueprint_Response) ProtoMessage

func (*GenerateBlueprint_Response) ProtoMessage()

func (*GenerateBlueprint_Response) ProtoReflect

func (*GenerateBlueprint_Response) Reset

func (x *GenerateBlueprint_Response) Reset()

func (*GenerateBlueprint_Response) String

func (x *GenerateBlueprint_Response) String() string

type GetBlueprintSchema

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

func (*GetBlueprintSchema) Descriptor deprecated

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

Deprecated: Use GetBlueprintSchema.ProtoReflect.Descriptor instead.

func (*GetBlueprintSchema) ProtoMessage

func (*GetBlueprintSchema) ProtoMessage()

func (*GetBlueprintSchema) ProtoReflect

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

func (*GetBlueprintSchema) Reset

func (x *GetBlueprintSchema) Reset()

func (*GetBlueprintSchema) String

func (x *GetBlueprintSchema) String() string

type GetBlueprintSchema_Request

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

func (*GetBlueprintSchema_Request) Descriptor deprecated

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

Deprecated: Use GetBlueprintSchema_Request.ProtoReflect.Descriptor instead.

func (*GetBlueprintSchema_Request) ProtoMessage

func (*GetBlueprintSchema_Request) ProtoMessage()

func (*GetBlueprintSchema_Request) ProtoReflect

func (*GetBlueprintSchema_Request) Reset

func (x *GetBlueprintSchema_Request) Reset()

func (*GetBlueprintSchema_Request) String

func (x *GetBlueprintSchema_Request) String() string

type GetBlueprintSchema_Response

type GetBlueprintSchema_Response struct {
	BlueprintSchema *BlueprintSchema `protobuf:"bytes,1,opt,name=blueprint_schema,proto3" json:"blueprint_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlueprintSchema_Response) Descriptor deprecated

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

Deprecated: Use GetBlueprintSchema_Response.ProtoReflect.Descriptor instead.

func (*GetBlueprintSchema_Response) GetBlueprintSchema

func (x *GetBlueprintSchema_Response) GetBlueprintSchema() *BlueprintSchema

func (*GetBlueprintSchema_Response) ProtoMessage

func (*GetBlueprintSchema_Response) ProtoMessage()

func (*GetBlueprintSchema_Response) ProtoReflect

func (*GetBlueprintSchema_Response) Reset

func (x *GetBlueprintSchema_Response) Reset()

func (*GetBlueprintSchema_Response) String

func (x *GetBlueprintSchema_Response) String() string

type Image

type Image struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetTag

func (x *Image) GetTag() string

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type ReadyCheck

type ReadyCheck struct {
	Regex string `protobuf:"bytes,1,opt,name=regex,json=log_regex,proto3" json:"regex,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadyCheck) Descriptor deprecated

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

Deprecated: Use ReadyCheck.ProtoReflect.Descriptor instead.

func (*ReadyCheck) GetRegex

func (x *ReadyCheck) GetRegex() string

func (*ReadyCheck) ProtoMessage

func (*ReadyCheck) ProtoMessage()

func (*ReadyCheck) ProtoReflect

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

func (*ReadyCheck) Reset

func (x *ReadyCheck) Reset()

func (*ReadyCheck) String

func (x *ReadyCheck) String() string

type RunPhase

type RunPhase struct {
	Triggers []*FileTrigger `protobuf:"bytes,1,rep,name=triggers,proto3" json:"triggers,omitempty"`
	// Run all actions in this phase as a particular linux user. If unspecified, root is used.
	Uid *int64 `protobuf:"varint,2,opt,name=uid,proto3,oneof" json:"uid,omitempty"`
	// Run all actions in this phase as a particular linux group. If unspecified, root is used.
	Gid *int64 `protobuf:"varint,3,opt,name=gid,proto3,oneof" json:"gid,omitempty"`
	// contains filtered or unexported fields
}

func (*RunPhase) Descriptor deprecated

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

Deprecated: Use RunPhase.ProtoReflect.Descriptor instead.

func (*RunPhase) GetGid

func (x *RunPhase) GetGid() int64

func (*RunPhase) GetTriggers

func (x *RunPhase) GetTriggers() []*FileTrigger

func (*RunPhase) GetUid

func (x *RunPhase) GetUid() int64

func (*RunPhase) ProtoMessage

func (*RunPhase) ProtoMessage()

func (*RunPhase) ProtoReflect

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

func (*RunPhase) Reset

func (x *RunPhase) Reset()

func (*RunPhase) String

func (x *RunPhase) String() string

type ServerData

type ServerData struct {

	// The amount of memory that the server will start with in MB.
	InitialMemory uint32 `protobuf:"varint,1,opt,name=initial_memory,proto3" json:"initial_memory,omitempty"`
	// The maximal amount of memory that the server can possibly have in MB. If the server exceeds this amount, it will be killed.
	MaxMemory uint32 `protobuf:"varint,2,opt,name=max_memory,proto3" json:"max_memory,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerData) Descriptor deprecated

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

Deprecated: Use ServerData.ProtoReflect.Descriptor instead.

func (*ServerData) GetInitialMemory

func (x *ServerData) GetInitialMemory() uint32

func (*ServerData) GetMaxMemory

func (x *ServerData) GetMaxMemory() uint32

func (*ServerData) ProtoMessage

func (*ServerData) ProtoMessage()

func (*ServerData) ProtoReflect

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

func (*ServerData) Reset

func (x *ServerData) Reset()

func (*ServerData) String

func (x *ServerData) String() string

type SetupAction

type SetupAction struct {
	Unzip    *actions.UnzipFile    `protobuf:"bytes,1,opt,name=unzip,proto3" json:"unzip,omitempty"`
	Extract  *actions.ExtractFiles `protobuf:"bytes,2,opt,name=extract,proto3" json:"extract,omitempty"`
	Rename   *actions.RenameFiles  `protobuf:"bytes,3,opt,name=rename,proto3" json:"rename,omitempty"`
	Download *actions.DownloadFile `protobuf:"bytes,4,opt,name=download,proto3" json:"download,omitempty"`
	// contains filtered or unexported fields
}

func (*SetupAction) Descriptor deprecated

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

Deprecated: Use SetupAction.ProtoReflect.Descriptor instead.

func (*SetupAction) GetDownload

func (x *SetupAction) GetDownload() *actions.DownloadFile

func (*SetupAction) GetExtract

func (x *SetupAction) GetExtract() *actions.ExtractFiles

func (*SetupAction) GetRename

func (x *SetupAction) GetRename() *actions.RenameFiles

func (*SetupAction) GetUnzip

func (x *SetupAction) GetUnzip() *actions.UnzipFile

func (*SetupAction) ProtoMessage

func (*SetupAction) ProtoMessage()

func (*SetupAction) ProtoReflect

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

func (*SetupAction) Reset

func (x *SetupAction) Reset()

func (*SetupAction) String

func (x *SetupAction) String() string

type SetupPhase

type SetupPhase struct {
	Actions []*SetupAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	// Run all actions in this phase as a particular linux user. If unspecified, root is used.
	Uid *int64 `protobuf:"varint,2,opt,name=uid,proto3,oneof" json:"uid,omitempty"`
	// Run all actions in this phase as a particular linux group. If unspecified, root is used.
	Gid *int64 `protobuf:"varint,3,opt,name=gid,proto3,oneof" json:"gid,omitempty"`
	// contains filtered or unexported fields
}

func (*SetupPhase) Descriptor deprecated

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

Deprecated: Use SetupPhase.ProtoReflect.Descriptor instead.

func (*SetupPhase) GetActions

func (x *SetupPhase) GetActions() []*SetupAction

func (*SetupPhase) GetGid

func (x *SetupPhase) GetGid() int64

func (*SetupPhase) GetUid

func (x *SetupPhase) GetUid() int64

func (*SetupPhase) ProtoMessage

func (*SetupPhase) ProtoMessage()

func (*SetupPhase) ProtoReflect

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

func (*SetupPhase) Reset

func (x *SetupPhase) Reset()

func (*SetupPhase) String

func (x *SetupPhase) String() string

type UnimplementedBlueprintProviderServer

type UnimplementedBlueprintProviderServer struct {
}

UnimplementedBlueprintProviderServer should be embedded to have forward compatible implementations.

func (UnimplementedBlueprintProviderServer) GenerateBlueprint

func (UnimplementedBlueprintProviderServer) GetBlueprintSchema

type UnsafeBlueprintProviderServer

type UnsafeBlueprintProviderServer interface {
	// contains filtered or unexported methods
}

UnsafeBlueprintProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlueprintProviderServer will result in compilation errors.

type ValidateBlueprintData

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

func (*ValidateBlueprintData) Descriptor deprecated

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

Deprecated: Use ValidateBlueprintData.ProtoReflect.Descriptor instead.

func (*ValidateBlueprintData) ProtoMessage

func (*ValidateBlueprintData) ProtoMessage()

func (*ValidateBlueprintData) ProtoReflect

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

func (*ValidateBlueprintData) Reset

func (x *ValidateBlueprintData) Reset()

func (*ValidateBlueprintData) String

func (x *ValidateBlueprintData) String() string

type ValidateBlueprintData_Request

type ValidateBlueprintData_Request struct {
	Data *BlueprintData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateBlueprintData_Request) Descriptor deprecated

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

Deprecated: Use ValidateBlueprintData_Request.ProtoReflect.Descriptor instead.

func (*ValidateBlueprintData_Request) GetData

func (*ValidateBlueprintData_Request) ProtoMessage

func (*ValidateBlueprintData_Request) ProtoMessage()

func (*ValidateBlueprintData_Request) ProtoReflect

func (*ValidateBlueprintData_Request) Reset

func (x *ValidateBlueprintData_Request) Reset()

func (*ValidateBlueprintData_Request) String

type ValidateBlueprintData_Response

type ValidateBlueprintData_Response struct {
	Validation *Validation `protobuf:"bytes,1,opt,name=validation,proto3" json:"validation,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateBlueprintData_Response) Descriptor deprecated

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

Deprecated: Use ValidateBlueprintData_Response.ProtoReflect.Descriptor instead.

func (*ValidateBlueprintData_Response) GetValidation

func (x *ValidateBlueprintData_Response) GetValidation() *Validation

func (*ValidateBlueprintData_Response) ProtoMessage

func (*ValidateBlueprintData_Response) ProtoMessage()

func (*ValidateBlueprintData_Response) ProtoReflect

func (*ValidateBlueprintData_Response) Reset

func (x *ValidateBlueprintData_Response) Reset()

func (*ValidateBlueprintData_Response) String

type Validation

type Validation struct {

	// A short user-friendly description of what happened.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// A list of specific problems that occurred during validation.
	Problems []*ValidationProblem `protobuf:"bytes,2,rep,name=problems,proto3" json:"problems,omitempty"`
	// contains filtered or unexported fields
}

func (*Validation) Descriptor deprecated

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

Deprecated: Use Validation.ProtoReflect.Descriptor instead.

func (*Validation) GetDescription

func (x *Validation) GetDescription() string

func (*Validation) GetProblems

func (x *Validation) GetProblems() []*ValidationProblem

func (*Validation) ProtoMessage

func (*Validation) ProtoMessage()

func (*Validation) ProtoReflect

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

func (*Validation) Reset

func (x *Validation) Reset()

func (*Validation) String

func (x *Validation) String() string

type ValidationProblem

type ValidationProblem struct {

	// A description of what went wrong during validation.
	What string `protobuf:"bytes,1,opt,name=what,proto3" json:"what,omitempty"`
	// A description of where the problem occurred.
	Where string `protobuf:"bytes,2,opt,name=where,proto3" json:"where,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidationProblem) Descriptor deprecated

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

Deprecated: Use ValidationProblem.ProtoReflect.Descriptor instead.

func (*ValidationProblem) GetWhat

func (x *ValidationProblem) GetWhat() string

func (*ValidationProblem) GetWhere

func (x *ValidationProblem) GetWhere() string

func (*ValidationProblem) ProtoMessage

func (*ValidationProblem) ProtoMessage()

func (*ValidationProblem) ProtoReflect

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

func (*ValidationProblem) Reset

func (x *ValidationProblem) Reset()

func (*ValidationProblem) String

func (x *ValidationProblem) String() string

type Version

type Version struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Tag  string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetName

func (x *Version) GetName() string

func (*Version) GetTag

func (x *Version) GetTag() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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