Documentation
¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (c *Config) Directory() string
- func (x *Config) GetCfg() isConfig_Cfg
- func (x *Config) GetConnectedGithubConfig() *ConnectedGithubConfig
- func (x *Config) GetPublicGitConfig() *PublicGitConfig
- func (c *Config) GitRef() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (c *Config) Repo() string
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Config_ConnectedGithubConfig
- type Config_PublicGitConfig
- type ConnectedGithubConfig
- func (*ConnectedGithubConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectedGithubConfig) GetDirectory() string
- func (x *ConnectedGithubConfig) GetGitRef() string
- func (x *ConnectedGithubConfig) GetGithubAppKeyId() string
- func (x *ConnectedGithubConfig) GetGithubAppKeySecretName() string
- func (x *ConnectedGithubConfig) GetGithubInstallId() string
- func (x *ConnectedGithubConfig) GetRepo() string
- func (*ConnectedGithubConfig) ProtoMessage()
- func (x *ConnectedGithubConfig) ProtoReflect() protoreflect.Message
- func (x *ConnectedGithubConfig) Reset()
- func (x *ConnectedGithubConfig) String() string
- func (m *ConnectedGithubConfig) Validate() error
- func (m *ConnectedGithubConfig) ValidateAll() error
- type ConnectedGithubConfigMultiError
- type ConnectedGithubConfigValidationError
- func (e ConnectedGithubConfigValidationError) Cause() error
- func (e ConnectedGithubConfigValidationError) Error() string
- func (e ConnectedGithubConfigValidationError) ErrorName() string
- func (e ConnectedGithubConfigValidationError) Field() string
- func (e ConnectedGithubConfigValidationError) Key() bool
- func (e ConnectedGithubConfigValidationError) Reason() string
- type PublicGitConfig
- func (*PublicGitConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PublicGitConfig) GetDirectory() string
- func (x *PublicGitConfig) GetGitRef() string
- func (x *PublicGitConfig) GetRepo() string
- func (*PublicGitConfig) ProtoMessage()
- func (x *PublicGitConfig) ProtoReflect() protoreflect.Message
- func (x *PublicGitConfig) Reset()
- func (x *PublicGitConfig) String() string
- func (m *PublicGitConfig) Validate() error
- func (m *PublicGitConfig) ValidateAll() error
- type PublicGitConfigMultiError
- type PublicGitConfigValidationError
- func (e PublicGitConfigValidationError) Cause() error
- func (e PublicGitConfigValidationError) Error() string
- func (e PublicGitConfigValidationError) ErrorName() string
- func (e PublicGitConfigValidationError) Field() string
- func (e PublicGitConfigValidationError) Key() bool
- func (e PublicGitConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_vcs_v1_config_proto protoreflect.FileDescriptor
var File_vcs_v1_connected_github_proto protoreflect.FileDescriptor
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) GetConnectedGithubConfig ¶
func (x *Config) GetConnectedGithubConfig() *ConnectedGithubConfig
func (*Config) GetPublicGitConfig ¶
func (x *Config) GetPublicGitConfig() *PublicGitConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
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 ¶
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 ¶
func (m ConnectedGithubConfigMultiError) Error() string
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 ¶
func (e ConnectedGithubConfigValidationError) Cause() error
Cause function returns cause value.
func (ConnectedGithubConfigValidationError) Error ¶
func (e ConnectedGithubConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConnectedGithubConfigValidationError) ErrorName ¶
func (e ConnectedGithubConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConnectedGithubConfigValidationError) Field ¶
func (e ConnectedGithubConfigValidationError) Field() string
Field function returns field value.
func (ConnectedGithubConfigValidationError) Key ¶
func (e ConnectedGithubConfigValidationError) Key() bool
Key function returns key value.
func (ConnectedGithubConfigValidationError) Reason ¶
func (e ConnectedGithubConfigValidationError) Reason() string
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 ¶
func (m PublicGitConfigMultiError) Error() string
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 ¶
func (e PublicGitConfigValidationError) Cause() error
Cause function returns cause value.
func (PublicGitConfigValidationError) Error ¶
func (e PublicGitConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PublicGitConfigValidationError) ErrorName ¶
func (e PublicGitConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PublicGitConfigValidationError) Field ¶
func (e PublicGitConfigValidationError) Field() string
Field function returns field value.
func (PublicGitConfigValidationError) Key ¶
func (e PublicGitConfigValidationError) Key() bool
Key function returns key value.
func (PublicGitConfigValidationError) Reason ¶
func (e PublicGitConfigValidationError) Reason() string
Reason function returns reason value.