extensions

package
v0.3.42 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FetchMode_name = map[int32]string{
		0: "UNKNOWN_FETCH_MODE",
		1: "EXIT_CODE",
		2: "STRUCTURED_OUTPUT",
	}
	FetchMode_value = map[string]int32{
		"UNKNOWN_FETCH_MODE": 0,
		"EXIT_CODE":          1,
		"STRUCTURED_OUTPUT":  2,
	}
)

Enum value maps for FetchMode.

View Source
var (
	ExternalObject_Status_name = map[int32]string{
		0: "PENDING",
		1: "SUCCEEDED",
		2: "FAILED",
	}
	ExternalObject_Status_value = map[string]int32{
		"PENDING":   0,
		"SUCCEEDED": 1,
		"FAILED":    2,
	}
)

Enum value maps for ExternalObject_Status.

View Source
var File_prodvana_runtimes_extensions_fetch_proto protoreflect.FileDescriptor
View Source
var File_prodvana_runtimes_extensions_get_info_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ExternalObject added in v0.3.3

type ExternalObject struct {
	Name          string                        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ObjectType    string                        `protobuf:"bytes,2,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"`
	Versions      []*ExternalObjectVersion      `protobuf:"bytes,3,rep,name=versions,proto3" json:"versions,omitempty"`
	Status        ExternalObject_Status         `protobuf:"varint,4,opt,name=status,proto3,enum=prodvana.runtimes.extensions.ExternalObject_Status" json:"status,omitempty"`
	ExternalLinks []*common_config.ExternalLink `protobuf:"bytes,5,rep,name=external_links,json=externalLinks,proto3" json:"external_links,omitempty"`
	Message       string                        `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` // freeform message explaining the status, for example, error message
	DebugEvents   []*runtimes.DebugEvent        `protobuf:"bytes,7,rep,name=debug_events,json=debugEvents,proto3" json:"debug_events,omitempty"`
	// contains filtered or unexported fields
}

func (*ExternalObject) Descriptor deprecated added in v0.3.3

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

Deprecated: Use ExternalObject.ProtoReflect.Descriptor instead.

func (*ExternalObject) GetDebugEvents added in v0.3.20

func (x *ExternalObject) GetDebugEvents() []*runtimes.DebugEvent
func (x *ExternalObject) GetExternalLinks() []*common_config.ExternalLink

func (*ExternalObject) GetMessage added in v0.3.19

func (x *ExternalObject) GetMessage() string

func (*ExternalObject) GetName added in v0.3.3

func (x *ExternalObject) GetName() string

func (*ExternalObject) GetObjectType added in v0.3.3

func (x *ExternalObject) GetObjectType() string

func (*ExternalObject) GetStatus added in v0.3.3

func (x *ExternalObject) GetStatus() ExternalObject_Status

func (*ExternalObject) GetVersions added in v0.3.3

func (x *ExternalObject) GetVersions() []*ExternalObjectVersion

func (*ExternalObject) ProtoMessage added in v0.3.3

func (*ExternalObject) ProtoMessage()

func (*ExternalObject) ProtoReflect added in v0.3.3

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

func (*ExternalObject) Reset added in v0.3.3

func (x *ExternalObject) Reset()

func (*ExternalObject) String added in v0.3.3

func (x *ExternalObject) String() string

func (*ExternalObject) Validate added in v0.3.3

func (m *ExternalObject) Validate() error

Validate checks the field values on ExternalObject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ExternalObject) ValidateAll added in v0.3.3

func (m *ExternalObject) ValidateAll() error

ValidateAll checks the field values on ExternalObject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExternalObjectMultiError, or nil if none found.

type ExternalObjectMultiError added in v0.3.3

type ExternalObjectMultiError []error

ExternalObjectMultiError is an error wrapping multiple validation errors returned by ExternalObject.ValidateAll() if the designated constraints aren't met.

func (ExternalObjectMultiError) AllErrors added in v0.3.3

func (m ExternalObjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExternalObjectMultiError) Error added in v0.3.3

func (m ExternalObjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ExternalObjectValidationError added in v0.3.3

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

ExternalObjectValidationError is the validation error returned by ExternalObject.Validate if the designated constraints aren't met.

func (ExternalObjectValidationError) Cause added in v0.3.3

Cause function returns cause value.

func (ExternalObjectValidationError) Error added in v0.3.3

Error satisfies the builtin error interface

func (ExternalObjectValidationError) ErrorName added in v0.3.3

func (e ExternalObjectValidationError) ErrorName() string

ErrorName returns error name.

func (ExternalObjectValidationError) Field added in v0.3.3

Field function returns field value.

func (ExternalObjectValidationError) Key added in v0.3.3

Key function returns key value.

func (ExternalObjectValidationError) Reason added in v0.3.3

Reason function returns reason value.

type ExternalObjectVersion added in v0.3.3

type ExternalObjectVersion struct {
	Version           string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Replicas          int32  `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"`                                            // Created/running replicas, can be in any state
	AvailableReplicas int32  `protobuf:"varint,5,opt,name=available_replicas,json=availableReplicas,proto3" json:"available_replicas,omitempty"` // Replicas which have passed healthchecks for required duration.
	TargetReplicas    int32  `protobuf:"varint,6,opt,name=target_replicas,json=targetReplicas,proto3" json:"target_replicas,omitempty"`          // How many replicas are supposed to be spun up, if known
	Active            bool   `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	Drifted           bool   `protobuf:"varint,4,opt,name=drifted,proto3" json:"drifted,omitempty"` // next tag: 7
	// contains filtered or unexported fields
}

func (*ExternalObjectVersion) Descriptor deprecated added in v0.3.3

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

Deprecated: Use ExternalObjectVersion.ProtoReflect.Descriptor instead.

func (*ExternalObjectVersion) GetActive added in v0.3.3

func (x *ExternalObjectVersion) GetActive() bool

func (*ExternalObjectVersion) GetAvailableReplicas added in v0.3.6

func (x *ExternalObjectVersion) GetAvailableReplicas() int32

func (*ExternalObjectVersion) GetDrifted added in v0.3.3

func (x *ExternalObjectVersion) GetDrifted() bool

func (*ExternalObjectVersion) GetReplicas added in v0.3.3

func (x *ExternalObjectVersion) GetReplicas() int32

func (*ExternalObjectVersion) GetTargetReplicas added in v0.3.6

func (x *ExternalObjectVersion) GetTargetReplicas() int32

func (*ExternalObjectVersion) GetVersion added in v0.3.3

func (x *ExternalObjectVersion) GetVersion() string

func (*ExternalObjectVersion) ProtoMessage added in v0.3.3

func (*ExternalObjectVersion) ProtoMessage()

func (*ExternalObjectVersion) ProtoReflect added in v0.3.3

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

func (*ExternalObjectVersion) Reset added in v0.3.3

func (x *ExternalObjectVersion) Reset()

func (*ExternalObjectVersion) String added in v0.3.3

func (x *ExternalObjectVersion) String() string

func (*ExternalObjectVersion) Validate added in v0.3.3

func (m *ExternalObjectVersion) Validate() error

Validate checks the field values on ExternalObjectVersion with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ExternalObjectVersion) ValidateAll added in v0.3.3

func (m *ExternalObjectVersion) ValidateAll() error

ValidateAll checks the field values on ExternalObjectVersion with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExternalObjectVersionMultiError, or nil if none found.

type ExternalObjectVersionMultiError added in v0.3.3

type ExternalObjectVersionMultiError []error

ExternalObjectVersionMultiError is an error wrapping multiple validation errors returned by ExternalObjectVersion.ValidateAll() if the designated constraints aren't met.

func (ExternalObjectVersionMultiError) AllErrors added in v0.3.3

func (m ExternalObjectVersionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExternalObjectVersionMultiError) Error added in v0.3.3

Error returns a concatenation of all the error messages it wraps.

type ExternalObjectVersionValidationError added in v0.3.3

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

ExternalObjectVersionValidationError is the validation error returned by ExternalObjectVersion.Validate if the designated constraints aren't met.

func (ExternalObjectVersionValidationError) Cause added in v0.3.3

Cause function returns cause value.

func (ExternalObjectVersionValidationError) Error added in v0.3.3

Error satisfies the builtin error interface

func (ExternalObjectVersionValidationError) ErrorName added in v0.3.3

ErrorName returns error name.

func (ExternalObjectVersionValidationError) Field added in v0.3.3

Field function returns field value.

func (ExternalObjectVersionValidationError) Key added in v0.3.3

Key function returns key value.

func (ExternalObjectVersionValidationError) Reason added in v0.3.3

Reason function returns reason value.

type ExternalObject_Status added in v0.3.3

type ExternalObject_Status int32
const (
	ExternalObject_PENDING   ExternalObject_Status = 0
	ExternalObject_SUCCEEDED ExternalObject_Status = 1
	ExternalObject_FAILED    ExternalObject_Status = 2
)

func (ExternalObject_Status) Descriptor added in v0.3.3

func (ExternalObject_Status) Enum added in v0.3.3

func (ExternalObject_Status) EnumDescriptor deprecated added in v0.3.3

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

Deprecated: Use ExternalObject_Status.Descriptor instead.

func (ExternalObject_Status) Number added in v0.3.3

func (ExternalObject_Status) String added in v0.3.3

func (x ExternalObject_Status) String() string

func (ExternalObject_Status) Type added in v0.3.3

type FetchMode added in v0.3.3

type FetchMode int32
const (
	FetchMode_UNKNOWN_FETCH_MODE FetchMode = 0
	// fetch will either exit 0 or 2 to indicate drift
	FetchMode_EXIT_CODE FetchMode = 1
	// fetch will return structured output via stdout
	FetchMode_STRUCTURED_OUTPUT FetchMode = 2
)

func (FetchMode) Descriptor added in v0.3.3

func (FetchMode) Descriptor() protoreflect.EnumDescriptor

func (FetchMode) Enum added in v0.3.3

func (x FetchMode) Enum() *FetchMode

func (FetchMode) EnumDescriptor deprecated added in v0.3.3

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

Deprecated: Use FetchMode.Descriptor instead.

func (FetchMode) Number added in v0.3.3

func (x FetchMode) Number() protoreflect.EnumNumber

func (FetchMode) String added in v0.3.3

func (x FetchMode) String() string

func (FetchMode) Type added in v0.3.3

type FetchOutput added in v0.3.3

type FetchOutput struct {
	Objects []*ExternalObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

output format for the fetch command, in json format optional. Fetch commands can choose to implement the output, or exit 0 or 2.

func (*FetchOutput) Descriptor deprecated added in v0.3.3

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

Deprecated: Use FetchOutput.ProtoReflect.Descriptor instead.

func (*FetchOutput) GetObjects added in v0.3.3

func (x *FetchOutput) GetObjects() []*ExternalObject

func (*FetchOutput) ProtoMessage added in v0.3.3

func (*FetchOutput) ProtoMessage()

func (*FetchOutput) ProtoReflect added in v0.3.3

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

func (*FetchOutput) Reset added in v0.3.3

func (x *FetchOutput) Reset()

func (*FetchOutput) String added in v0.3.3

func (x *FetchOutput) String() string

func (*FetchOutput) Validate added in v0.3.3

func (m *FetchOutput) Validate() error

Validate checks the field values on FetchOutput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FetchOutput) ValidateAll added in v0.3.3

func (m *FetchOutput) ValidateAll() error

ValidateAll checks the field values on FetchOutput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FetchOutputMultiError, or nil if none found.

type FetchOutputMultiError added in v0.3.3

type FetchOutputMultiError []error

FetchOutputMultiError is an error wrapping multiple validation errors returned by FetchOutput.ValidateAll() if the designated constraints aren't met.

func (FetchOutputMultiError) AllErrors added in v0.3.3

func (m FetchOutputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FetchOutputMultiError) Error added in v0.3.3

func (m FetchOutputMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FetchOutputValidationError added in v0.3.3

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

FetchOutputValidationError is the validation error returned by FetchOutput.Validate if the designated constraints aren't met.

func (FetchOutputValidationError) Cause added in v0.3.3

Cause function returns cause value.

func (FetchOutputValidationError) Error added in v0.3.3

Error satisfies the builtin error interface

func (FetchOutputValidationError) ErrorName added in v0.3.3

func (e FetchOutputValidationError) ErrorName() string

ErrorName returns error name.

func (FetchOutputValidationError) Field added in v0.3.3

Field function returns field value.

func (FetchOutputValidationError) Key added in v0.3.3

Key function returns key value.

func (FetchOutputValidationError) Reason added in v0.3.3

Reason function returns reason value.

type GetInfoOutput added in v0.2.16

type GetInfoOutput struct {
	Outputs []*OutputContent `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// contains filtered or unexported fields
}

output format for the get_info command, in json format

func (*GetInfoOutput) Descriptor deprecated added in v0.2.16

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

Deprecated: Use GetInfoOutput.ProtoReflect.Descriptor instead.

func (*GetInfoOutput) GetOutputs added in v0.2.16

func (x *GetInfoOutput) GetOutputs() []*OutputContent

func (*GetInfoOutput) ProtoMessage added in v0.2.16

func (*GetInfoOutput) ProtoMessage()

func (*GetInfoOutput) ProtoReflect added in v0.2.16

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

func (*GetInfoOutput) Reset added in v0.2.16

func (x *GetInfoOutput) Reset()

func (*GetInfoOutput) String added in v0.2.16

func (x *GetInfoOutput) String() string

func (*GetInfoOutput) Validate added in v0.2.16

func (m *GetInfoOutput) Validate() error

Validate checks the field values on GetInfoOutput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetInfoOutput) ValidateAll added in v0.2.16

func (m *GetInfoOutput) ValidateAll() error

ValidateAll checks the field values on GetInfoOutput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetInfoOutputMultiError, or nil if none found.

type GetInfoOutputMultiError added in v0.2.16

type GetInfoOutputMultiError []error

GetInfoOutputMultiError is an error wrapping multiple validation errors returned by GetInfoOutput.ValidateAll() if the designated constraints aren't met.

func (GetInfoOutputMultiError) AllErrors added in v0.2.16

func (m GetInfoOutputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetInfoOutputMultiError) Error added in v0.2.16

func (m GetInfoOutputMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetInfoOutputValidationError added in v0.2.16

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

GetInfoOutputValidationError is the validation error returned by GetInfoOutput.Validate if the designated constraints aren't met.

func (GetInfoOutputValidationError) Cause added in v0.2.16

Cause function returns cause value.

func (GetInfoOutputValidationError) Error added in v0.2.16

Error satisfies the builtin error interface

func (GetInfoOutputValidationError) ErrorName added in v0.2.16

func (e GetInfoOutputValidationError) ErrorName() string

ErrorName returns error name.

func (GetInfoOutputValidationError) Field added in v0.2.16

Field function returns field value.

func (GetInfoOutputValidationError) Key added in v0.2.16

Key function returns key value.

func (GetInfoOutputValidationError) Reason added in v0.2.16

Reason function returns reason value.

type OutputContent

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

func (*OutputContent) Descriptor deprecated

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

Deprecated: Use OutputContent.ProtoReflect.Descriptor instead.

func (*OutputContent) GetName

func (x *OutputContent) GetName() string

func (*OutputContent) GetText

func (x *OutputContent) GetText() string

func (*OutputContent) ProtoMessage

func (*OutputContent) ProtoMessage()

func (*OutputContent) ProtoReflect

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

func (*OutputContent) Reset

func (x *OutputContent) Reset()

func (*OutputContent) String

func (x *OutputContent) String() string

func (*OutputContent) Validate

func (m *OutputContent) Validate() error

Validate checks the field values on OutputContent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OutputContent) ValidateAll

func (m *OutputContent) ValidateAll() error

ValidateAll checks the field values on OutputContent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OutputContentMultiError, or nil if none found.

type OutputContentMultiError

type OutputContentMultiError []error

OutputContentMultiError is an error wrapping multiple validation errors returned by OutputContent.ValidateAll() if the designated constraints aren't met.

func (OutputContentMultiError) AllErrors

func (m OutputContentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OutputContentMultiError) Error

func (m OutputContentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OutputContentValidationError

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

OutputContentValidationError is the validation error returned by OutputContent.Validate if the designated constraints aren't met.

func (OutputContentValidationError) Cause

Cause function returns cause value.

func (OutputContentValidationError) Error

Error satisfies the builtin error interface

func (OutputContentValidationError) ErrorName

func (e OutputContentValidationError) ErrorName() string

ErrorName returns error name.

func (OutputContentValidationError) Field

Field function returns field value.

func (OutputContentValidationError) Key

Key function returns key value.

func (OutputContentValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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