vcsv1

package
v0.19.821 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_vcs_v1_config_proto protoreflect.FileDescriptor
View Source
var File_vcs_v1_connected_github_proto protoreflect.FileDescriptor
View Source
var File_vcs_v1_public_git_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {

	// Types that are valid to be assigned to Cfg:
	//
	//	*Config_ConnectedGithubConfig
	//	*Config_PublicGitConfig
	Cfg isConfig_Cfg `protobuf_oneof:"cfg"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) Directory

func (c *Config) Directory() string

func (*Config) GetCfg

func (x *Config) GetCfg() isConfig_Cfg

func (*Config) GetConnectedGithubConfig

func (x *Config) GetConnectedGithubConfig() *ConnectedGithubConfig

func (*Config) GetPublicGitConfig

func (x *Config) GetPublicGitConfig() *PublicGitConfig

func (*Config) GitRef

func (c *Config) GitRef() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Repo

func (c *Config) Repo() string

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

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

func (m *Config) ValidateAll() error

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

type ConfigMultiError

type ConfigMultiError []error

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

func (ConfigMultiError) AllErrors

func (m ConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigMultiError) Error

func (m ConfigMultiError) Error() string

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

type ConfigValidationError

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

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

type Config_ConnectedGithubConfig

type Config_ConnectedGithubConfig struct {
	ConnectedGithubConfig *ConnectedGithubConfig `protobuf:"bytes,1,opt,name=connected_github_config,json=connectedGithubConfig,proto3,oneof"`
}

type Config_PublicGitConfig

type Config_PublicGitConfig struct {
	PublicGitConfig *PublicGitConfig `protobuf:"bytes,2,opt,name=public_git_config,json=publicGitConfig,proto3,oneof"`
}

type ConnectedGithubConfig

type ConnectedGithubConfig struct {

	// repo is the org/repo path of the repository
	Repo      string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Directory string `protobuf:"bytes,2,opt,name=directory,proto3" json:"directory,omitempty"`
	// gitRef is determined by the api, based on the user adding a commit or a branch and then we decipher the commit
	GitRef string `protobuf:"bytes,3,opt,name=git_ref,json=gitRef,proto3" json:"git_ref,omitempty"`
	// github app key and secret file are used by the worker to create a clone token for the provided install id.
	GithubAppKeyId         string `protobuf:"bytes,4,opt,name=github_app_key_id,json=githubAppKeyId,proto3" json:"github_app_key_id,omitempty"`
	GithubAppKeySecretName string `` /* 133-byte string literal not displayed */
	GithubInstallId        string `protobuf:"bytes,6,opt,name=github_install_id,json=githubInstallId,proto3" json:"github_install_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectedGithubConfig) Descriptor deprecated

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

Deprecated: Use ConnectedGithubConfig.ProtoReflect.Descriptor instead.

func (*ConnectedGithubConfig) GetDirectory

func (x *ConnectedGithubConfig) GetDirectory() string

func (*ConnectedGithubConfig) GetGitRef

func (x *ConnectedGithubConfig) GetGitRef() string

func (*ConnectedGithubConfig) GetGithubAppKeyId

func (x *ConnectedGithubConfig) GetGithubAppKeyId() string

func (*ConnectedGithubConfig) GetGithubAppKeySecretName

func (x *ConnectedGithubConfig) GetGithubAppKeySecretName() string

func (*ConnectedGithubConfig) GetGithubInstallId

func (x *ConnectedGithubConfig) GetGithubInstallId() string

func (*ConnectedGithubConfig) GetRepo

func (x *ConnectedGithubConfig) GetRepo() string

func (*ConnectedGithubConfig) ProtoMessage

func (*ConnectedGithubConfig) ProtoMessage()

func (*ConnectedGithubConfig) ProtoReflect

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

func (*ConnectedGithubConfig) Reset

func (x *ConnectedGithubConfig) Reset()

func (*ConnectedGithubConfig) String

func (x *ConnectedGithubConfig) String() string

func (*ConnectedGithubConfig) Validate

func (m *ConnectedGithubConfig) Validate() error

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

func (m *ConnectedGithubConfig) ValidateAll() error

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

type ConnectedGithubConfigMultiError

type ConnectedGithubConfigMultiError []error

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

func (ConnectedGithubConfigMultiError) AllErrors

func (m ConnectedGithubConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConnectedGithubConfigMultiError) Error

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

type ConnectedGithubConfigValidationError

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

ConnectedGithubConfigValidationError is the validation error returned by ConnectedGithubConfig.Validate if the designated constraints aren't met.

func (ConnectedGithubConfigValidationError) Cause

Cause function returns cause value.

func (ConnectedGithubConfigValidationError) Error

Error satisfies the builtin error interface

func (ConnectedGithubConfigValidationError) ErrorName

ErrorName returns error name.

func (ConnectedGithubConfigValidationError) Field

Field function returns field value.

func (ConnectedGithubConfigValidationError) Key

Key function returns key value.

func (ConnectedGithubConfigValidationError) Reason

Reason function returns reason value.

type PublicGitConfig

type PublicGitConfig struct {

	// repo is the org/repo path of the repository
	Repo      string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Directory string `protobuf:"bytes,2,opt,name=directory,proto3" json:"directory,omitempty"`
	// for public repo configs, we'll just use the branch since the API doesn't have permissions to clone etc and this is
	// really just for demo purposes
	GitRef string `protobuf:"bytes,3,opt,name=git_ref,json=gitRef,proto3" json:"git_ref,omitempty"`
	// contains filtered or unexported fields
}

Git configuration for public repos Can be used either for helm charts or docker builds

func (*PublicGitConfig) Descriptor deprecated

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

Deprecated: Use PublicGitConfig.ProtoReflect.Descriptor instead.

func (*PublicGitConfig) GetDirectory

func (x *PublicGitConfig) GetDirectory() string

func (*PublicGitConfig) GetGitRef

func (x *PublicGitConfig) GetGitRef() string

func (*PublicGitConfig) GetRepo

func (x *PublicGitConfig) GetRepo() string

func (*PublicGitConfig) ProtoMessage

func (*PublicGitConfig) ProtoMessage()

func (*PublicGitConfig) ProtoReflect

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

func (*PublicGitConfig) Reset

func (x *PublicGitConfig) Reset()

func (*PublicGitConfig) String

func (x *PublicGitConfig) String() string

func (*PublicGitConfig) Validate

func (m *PublicGitConfig) Validate() error

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

func (m *PublicGitConfig) ValidateAll() error

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

type PublicGitConfigMultiError

type PublicGitConfigMultiError []error

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

func (PublicGitConfigMultiError) AllErrors

func (m PublicGitConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublicGitConfigMultiError) Error

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

type PublicGitConfigValidationError

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

PublicGitConfigValidationError is the validation error returned by PublicGitConfig.Validate if the designated constraints aren't met.

func (PublicGitConfigValidationError) Cause

Cause function returns cause value.

func (PublicGitConfigValidationError) Error

Error satisfies the builtin error interface

func (PublicGitConfigValidationError) ErrorName

func (e PublicGitConfigValidationError) ErrorName() string

ErrorName returns error name.

func (PublicGitConfigValidationError) Field

Field function returns field value.

func (PublicGitConfigValidationError) Key

Key function returns key value.

func (PublicGitConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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