contextv1

package
v0.19.770 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RunnerType_name = map[int32]string{
		0: "RUNNER_TYPE_UNSPECIFIED",
		1: "RUNNER_TYPE_AWS_ECS",
		2: "RUNNER_TYPE_AWS_EKS",
		3: "RUNNER_TYPE_AZURE_AKS",
		4: "RUNNER_TYPE_AZURE_ACS",
		5: "RUNNER_TYPE_BUILD",
	}
	RunnerType_value = map[string]int32{
		"RUNNER_TYPE_UNSPECIFIED": 0,
		"RUNNER_TYPE_AWS_ECS":     1,
		"RUNNER_TYPE_AWS_EKS":     2,
		"RUNNER_TYPE_AZURE_AKS":   3,
		"RUNNER_TYPE_AZURE_ACS":   4,
		"RUNNER_TYPE_BUILD":       5,
	}
)

Enum value maps for RunnerType.

View Source
var File_context_v1_app_context_proto protoreflect.FileDescriptor
View Source
var File_context_v1_build_context_proto protoreflect.FileDescriptor
View Source
var File_context_v1_context_proto protoreflect.FileDescriptor
View Source
var File_context_v1_install_context_proto protoreflect.FileDescriptor
View Source
var File_context_v1_runner_context_proto protoreflect.FileDescriptor
View Source
var File_context_v1_runner_type_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppContext

type AppContext struct {
	Secrets *v1.Secrets `protobuf:"bytes,1,opt,name=secrets,proto3" json:"secrets,omitempty"`
	// contains filtered or unexported fields
}

func (*AppContext) Descriptor deprecated

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

Deprecated: Use AppContext.ProtoReflect.Descriptor instead.

func (*AppContext) GetSecrets

func (x *AppContext) GetSecrets() *v1.Secrets

func (*AppContext) ProtoMessage

func (*AppContext) ProtoMessage()

func (*AppContext) ProtoReflect

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

func (*AppContext) Reset

func (x *AppContext) Reset()

func (*AppContext) String

func (x *AppContext) String() string

func (*AppContext) Validate

func (m *AppContext) Validate() error

Validate checks the field values on AppContext 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 (*AppContext) ValidateAll

func (m *AppContext) ValidateAll() error

ValidateAll checks the field values on AppContext 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 AppContextMultiError, or nil if none found.

type AppContextMultiError

type AppContextMultiError []error

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

func (AppContextMultiError) AllErrors

func (m AppContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppContextMultiError) Error

func (m AppContextMultiError) Error() string

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

type AppContextValidationError

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

AppContextValidationError is the validation error returned by AppContext.Validate if the designated constraints aren't met.

func (AppContextValidationError) Cause

func (e AppContextValidationError) Cause() error

Cause function returns cause value.

func (AppContextValidationError) Error

Error satisfies the builtin error interface

func (AppContextValidationError) ErrorName

func (e AppContextValidationError) ErrorName() string

ErrorName returns error name.

func (AppContextValidationError) Field

Field function returns field value.

func (AppContextValidationError) Key

Key function returns key value.

func (AppContextValidationError) Reason

func (e AppContextValidationError) Reason() string

Reason function returns reason value.

type AwsAccount

type AwsAccount struct {
	Federated bool   `protobuf:"varint,1,opt,name=federated,proto3" json:"federated,omitempty"`
	Region    string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	RoleArn   string `protobuf:"bytes,3,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"`
	// contains filtered or unexported fields
}

func (*AwsAccount) Descriptor deprecated

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

Deprecated: Use AwsAccount.ProtoReflect.Descriptor instead.

func (*AwsAccount) GetFederated

func (x *AwsAccount) GetFederated() bool

func (*AwsAccount) GetRegion

func (x *AwsAccount) GetRegion() string

func (*AwsAccount) GetRoleArn

func (x *AwsAccount) GetRoleArn() string

func (*AwsAccount) ProtoMessage

func (*AwsAccount) ProtoMessage()

func (*AwsAccount) ProtoReflect

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

func (*AwsAccount) Reset

func (x *AwsAccount) Reset()

func (*AwsAccount) String

func (x *AwsAccount) String() string

func (*AwsAccount) Validate

func (m *AwsAccount) Validate() error

Validate checks the field values on AwsAccount 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 (*AwsAccount) ValidateAll

func (m *AwsAccount) ValidateAll() error

ValidateAll checks the field values on AwsAccount 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 AwsAccountMultiError, or nil if none found.

type AwsAccountMultiError

type AwsAccountMultiError []error

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

func (AwsAccountMultiError) AllErrors

func (m AwsAccountMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AwsAccountMultiError) Error

func (m AwsAccountMultiError) Error() string

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

type AwsAccountValidationError

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

AwsAccountValidationError is the validation error returned by AwsAccount.Validate if the designated constraints aren't met.

func (AwsAccountValidationError) Cause

func (e AwsAccountValidationError) Cause() error

Cause function returns cause value.

func (AwsAccountValidationError) Error

Error satisfies the builtin error interface

func (AwsAccountValidationError) ErrorName

func (e AwsAccountValidationError) ErrorName() string

ErrorName returns error name.

func (AwsAccountValidationError) Field

Field function returns field value.

func (AwsAccountValidationError) Key

Key function returns key value.

func (AwsAccountValidationError) Reason

func (e AwsAccountValidationError) Reason() string

Reason function returns reason value.

type AzureAccount

type AzureAccount struct {
	Location       string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	SubscriptionId string `protobuf:"bytes,2,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	TenantId       string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	ClientId       string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret   string `protobuf:"bytes,5,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*AzureAccount) Descriptor deprecated

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

Deprecated: Use AzureAccount.ProtoReflect.Descriptor instead.

func (*AzureAccount) GetClientId

func (x *AzureAccount) GetClientId() string

func (*AzureAccount) GetClientSecret

func (x *AzureAccount) GetClientSecret() string

func (*AzureAccount) GetLocation

func (x *AzureAccount) GetLocation() string

func (*AzureAccount) GetSubscriptionId

func (x *AzureAccount) GetSubscriptionId() string

func (*AzureAccount) GetTenantId

func (x *AzureAccount) GetTenantId() string

func (*AzureAccount) ProtoMessage

func (*AzureAccount) ProtoMessage()

func (*AzureAccount) ProtoReflect

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

func (*AzureAccount) Reset

func (x *AzureAccount) Reset()

func (*AzureAccount) String

func (x *AzureAccount) String() string

func (*AzureAccount) Validate

func (m *AzureAccount) Validate() error

Validate checks the field values on AzureAccount 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 (*AzureAccount) ValidateAll

func (m *AzureAccount) ValidateAll() error

ValidateAll checks the field values on AzureAccount 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 AzureAccountMultiError, or nil if none found.

type AzureAccountMultiError

type AzureAccountMultiError []error

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

func (AzureAccountMultiError) AllErrors

func (m AzureAccountMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AzureAccountMultiError) Error

func (m AzureAccountMultiError) Error() string

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

type AzureAccountValidationError

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

AzureAccountValidationError is the validation error returned by AzureAccount.Validate if the designated constraints aren't met.

func (AzureAccountValidationError) Cause

Cause function returns cause value.

func (AzureAccountValidationError) Error

Error satisfies the builtin error interface

func (AzureAccountValidationError) ErrorName

func (e AzureAccountValidationError) ErrorName() string

ErrorName returns error name.

func (AzureAccountValidationError) Field

Field function returns field value.

func (AzureAccountValidationError) Key

Key function returns key value.

func (AzureAccountValidationError) Reason

Reason function returns reason value.

type BuildContext

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

func (*BuildContext) Descriptor deprecated

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

Deprecated: Use BuildContext.ProtoReflect.Descriptor instead.

func (*BuildContext) ProtoMessage

func (*BuildContext) ProtoMessage()

func (*BuildContext) ProtoReflect

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

func (*BuildContext) Reset

func (x *BuildContext) Reset()

func (*BuildContext) String

func (x *BuildContext) String() string

func (*BuildContext) Validate

func (m *BuildContext) Validate() error

Validate checks the field values on BuildContext 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 (*BuildContext) ValidateAll

func (m *BuildContext) ValidateAll() error

ValidateAll checks the field values on BuildContext 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 BuildContextMultiError, or nil if none found.

type BuildContextMultiError

type BuildContextMultiError []error

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

func (BuildContextMultiError) AllErrors

func (m BuildContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BuildContextMultiError) Error

func (m BuildContextMultiError) Error() string

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

type BuildContextValidationError

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

BuildContextValidationError is the validation error returned by BuildContext.Validate if the designated constraints aren't met.

func (BuildContextValidationError) Cause

Cause function returns cause value.

func (BuildContextValidationError) Error

Error satisfies the builtin error interface

func (BuildContextValidationError) ErrorName

func (e BuildContextValidationError) ErrorName() string

ErrorName returns error name.

func (BuildContextValidationError) Field

Field function returns field value.

func (BuildContextValidationError) Key

Key function returns key value.

func (BuildContextValidationError) Reason

Reason function returns reason value.

type Context

type Context struct {
	BuildContext   *BuildContext   `protobuf:"bytes,1,opt,name=build_context,json=buildContext,proto3" json:"build_context,omitempty"`
	InstallContext *InstallContext `protobuf:"bytes,2,opt,name=install_context,json=installContext,proto3" json:"install_context,omitempty"`
	RunnerContext  *RunnerContext  `protobuf:"bytes,3,opt,name=runner_context,json=runnerContext,proto3" json:"runner_context,omitempty"`
	AppContext     *AppContext     `protobuf:"bytes,4,opt,name=app_context,json=appContext,proto3" json:"app_context,omitempty"`
	// contains filtered or unexported fields
}

InstanceConnection represents a connection to another component in the same app, deployed to the same install.

func (*Context) Descriptor deprecated

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

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetAppContext

func (x *Context) GetAppContext() *AppContext

func (*Context) GetBuildContext

func (x *Context) GetBuildContext() *BuildContext

func (*Context) GetInstallContext

func (x *Context) GetInstallContext() *InstallContext

func (*Context) GetRunnerContext

func (x *Context) GetRunnerContext() *RunnerContext

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

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

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

func (*Context) Validate

func (m *Context) Validate() error

Validate checks the field values on Context 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 (*Context) ValidateAll

func (m *Context) ValidateAll() error

ValidateAll checks the field values on Context 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 ContextMultiError, or nil if none found.

type ContextMultiError

type ContextMultiError []error

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

func (ContextMultiError) AllErrors

func (m ContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ContextMultiError) Error

func (m ContextMultiError) Error() string

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

type ContextValidationError

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

ContextValidationError is the validation error returned by Context.Validate if the designated constraints aren't met.

func (ContextValidationError) Cause

func (e ContextValidationError) Cause() error

Cause function returns cause value.

func (ContextValidationError) Error

func (e ContextValidationError) Error() string

Error satisfies the builtin error interface

func (ContextValidationError) ErrorName

func (e ContextValidationError) ErrorName() string

ErrorName returns error name.

func (ContextValidationError) Field

func (e ContextValidationError) Field() string

Field function returns field value.

func (ContextValidationError) Key

func (e ContextValidationError) Key() bool

Key function returns key value.

func (ContextValidationError) Reason

func (e ContextValidationError) Reason() string

Reason function returns reason value.

type InstallContext

type InstallContext struct {
	AzureAccount *AzureAccount `protobuf:"bytes,1,opt,name=azure_account,json=azureAccount,proto3" json:"azure_account,omitempty"`
	AwsAccount   *AwsAccount   `protobuf:"bytes,2,opt,name=aws_account,json=awsAccount,proto3" json:"aws_account,omitempty"`
	// contains filtered or unexported fields
}

InstallContext is a context for passing information about an install

func (*InstallContext) Descriptor deprecated

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

Deprecated: Use InstallContext.ProtoReflect.Descriptor instead.

func (*InstallContext) GetAwsAccount

func (x *InstallContext) GetAwsAccount() *AwsAccount

func (*InstallContext) GetAzureAccount

func (x *InstallContext) GetAzureAccount() *AzureAccount

func (*InstallContext) ProtoMessage

func (*InstallContext) ProtoMessage()

func (*InstallContext) ProtoReflect

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

func (*InstallContext) Reset

func (x *InstallContext) Reset()

func (*InstallContext) String

func (x *InstallContext) String() string

func (*InstallContext) Validate

func (m *InstallContext) Validate() error

Validate checks the field values on InstallContext 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 (*InstallContext) ValidateAll

func (m *InstallContext) ValidateAll() error

ValidateAll checks the field values on InstallContext 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 InstallContextMultiError, or nil if none found.

type InstallContextMultiError

type InstallContextMultiError []error

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

func (InstallContextMultiError) AllErrors

func (m InstallContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InstallContextMultiError) Error

func (m InstallContextMultiError) Error() string

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

type InstallContextValidationError

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

InstallContextValidationError is the validation error returned by InstallContext.Validate if the designated constraints aren't met.

func (InstallContextValidationError) Cause

Cause function returns cause value.

func (InstallContextValidationError) Error

Error satisfies the builtin error interface

func (InstallContextValidationError) ErrorName

func (e InstallContextValidationError) ErrorName() string

ErrorName returns error name.

func (InstallContextValidationError) Field

Field function returns field value.

func (InstallContextValidationError) Key

Key function returns key value.

func (InstallContextValidationError) Reason

Reason function returns reason value.

type RunnerContext

type RunnerContext struct {
	RunnerType RunnerType `protobuf:"varint,3,opt,name=runner_type,json=runnerType,proto3,enum=context.v1.RunnerType" json:"runner_type,omitempty"`
	// contains filtered or unexported fields
}

RunnerContext is a context for passing information about a runner

func (*RunnerContext) Descriptor deprecated

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

Deprecated: Use RunnerContext.ProtoReflect.Descriptor instead.

func (*RunnerContext) GetRunnerType

func (x *RunnerContext) GetRunnerType() RunnerType

func (*RunnerContext) ProtoMessage

func (*RunnerContext) ProtoMessage()

func (*RunnerContext) ProtoReflect

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

func (*RunnerContext) Reset

func (x *RunnerContext) Reset()

func (*RunnerContext) String

func (x *RunnerContext) String() string

func (*RunnerContext) Validate

func (m *RunnerContext) Validate() error

Validate checks the field values on RunnerContext 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 (*RunnerContext) ValidateAll

func (m *RunnerContext) ValidateAll() error

ValidateAll checks the field values on RunnerContext 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 RunnerContextMultiError, or nil if none found.

type RunnerContextMultiError

type RunnerContextMultiError []error

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

func (RunnerContextMultiError) AllErrors

func (m RunnerContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RunnerContextMultiError) Error

func (m RunnerContextMultiError) Error() string

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

type RunnerContextValidationError

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

RunnerContextValidationError is the validation error returned by RunnerContext.Validate if the designated constraints aren't met.

func (RunnerContextValidationError) Cause

Cause function returns cause value.

func (RunnerContextValidationError) Error

Error satisfies the builtin error interface

func (RunnerContextValidationError) ErrorName

func (e RunnerContextValidationError) ErrorName() string

ErrorName returns error name.

func (RunnerContextValidationError) Field

Field function returns field value.

func (RunnerContextValidationError) Key

Key function returns key value.

func (RunnerContextValidationError) Reason

Reason function returns reason value.

type RunnerType

type RunnerType int32
const (
	RunnerType_RUNNER_TYPE_UNSPECIFIED RunnerType = 0
	// install runners
	RunnerType_RUNNER_TYPE_AWS_ECS   RunnerType = 1
	RunnerType_RUNNER_TYPE_AWS_EKS   RunnerType = 2
	RunnerType_RUNNER_TYPE_AZURE_AKS RunnerType = 3
	RunnerType_RUNNER_TYPE_AZURE_ACS RunnerType = 4
	// build runners
	RunnerType_RUNNER_TYPE_BUILD RunnerType = 5
)

func (RunnerType) Descriptor

func (RunnerType) Descriptor() protoreflect.EnumDescriptor

func (RunnerType) Enum

func (x RunnerType) Enum() *RunnerType

func (RunnerType) EnumDescriptor deprecated

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

Deprecated: Use RunnerType.Descriptor instead.

func (RunnerType) Number

func (x RunnerType) Number() protoreflect.EnumNumber

func (RunnerType) String

func (x RunnerType) String() string

func (RunnerType) Type

Jump to

Keyboard shortcuts

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