Documentation
¶
Index ¶
- Variables
- type GitCredential
- func (*GitCredential) Descriptor() ([]byte, []int)deprecated
- func (x *GitCredential) GetApiVersion() string
- func (x *GitCredential) GetKind() string
- func (x *GitCredential) GetMetadata() *shared.ApiResourceMetadata
- func (x *GitCredential) GetSpec() *GitCredentialSpec
- func (x *GitCredential) GetStatus() *shared.ApiResourceLifecycleAndAuditStatus
- func (*GitCredential) ProtoMessage()
- func (x *GitCredential) ProtoReflect() protoreflect.Message
- func (x *GitCredential) Reset()
- func (x *GitCredential) String() string
- type GitCredentialSpec
- func (*GitCredentialSpec) Descriptor() ([]byte, []int)deprecated
- func (x *GitCredentialSpec) GetPassword() string
- func (x *GitCredentialSpec) GetPersonalAccessToken() string
- func (x *GitCredentialSpec) GetSshPrivateKey() string
- func (x *GitCredentialSpec) GetUsername() string
- func (*GitCredentialSpec) ProtoMessage()
- func (x *GitCredentialSpec) ProtoReflect() protoreflect.Message
- func (x *GitCredentialSpec) Reset()
- func (x *GitCredentialSpec) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_project_planton_credential_gitcredential_v1_api_proto protoreflect.FileDescriptor
View Source
var File_project_planton_credential_gitcredential_v1_spec_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GitCredential ¶
type GitCredential struct { // api-version ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // resource-kind Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // metadata Metadata *shared.ApiResourceMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // spec Spec *GitCredentialSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // status Status *shared.ApiResourceLifecycleAndAuditStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
git-credential
func (*GitCredential) Descriptor
deprecated
func (*GitCredential) Descriptor() ([]byte, []int)
Deprecated: Use GitCredential.ProtoReflect.Descriptor instead.
func (*GitCredential) GetApiVersion ¶
func (x *GitCredential) GetApiVersion() string
func (*GitCredential) GetKind ¶
func (x *GitCredential) GetKind() string
func (*GitCredential) GetMetadata ¶
func (x *GitCredential) GetMetadata() *shared.ApiResourceMetadata
func (*GitCredential) GetSpec ¶
func (x *GitCredential) GetSpec() *GitCredentialSpec
func (*GitCredential) GetStatus ¶
func (x *GitCredential) GetStatus() *shared.ApiResourceLifecycleAndAuditStatus
func (*GitCredential) ProtoMessage ¶
func (*GitCredential) ProtoMessage()
func (*GitCredential) ProtoReflect ¶
func (x *GitCredential) ProtoReflect() protoreflect.Message
func (*GitCredential) Reset ¶
func (x *GitCredential) Reset()
func (*GitCredential) String ¶
func (x *GitCredential) String() string
type GitCredentialSpec ¶
type GitCredentialSpec struct { // The username used when authenticating to the Git repository. // This field is used in combination with the password or personal access token for authentication. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // The password used in conjunction with a username or as part of an SSH private key. // This field is optional and is used for password-based authentication to the Git repository. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // The private SSH key used to access the Git repository. // This is the contents of the private key required for authentication. // When using `SSHPrivateKey`, the repository URL must be in the format `git@github.com:org/repository.git`. // If the URL is not in this format, an error such as `unable to clone repo: invalid auth method` will be returned. SshPrivateKey string `protobuf:"bytes,3,opt,name=ssh_private_key,json=sshPrivateKey,proto3" json:"ssh_private_key,omitempty"` // The personal access token used as a replacement for the password. // This token can be used to authenticate to the Git repository instead of using a password. PersonalAccessToken string `protobuf:"bytes,4,opt,name=personal_access_token,json=personalAccessToken,proto3" json:"personal_access_token,omitempty"` // contains filtered or unexported fields }
GitCredentialSpec message represents the specification required to connect to a Git repository. This message consolidates all necessary input parameters to establish a secure connection with a Git repository, ensuring accurate configuration and validation of credentials. Fields include environment information, SSH private key, password, personal access token, and username, providing a complete set of information for securely connecting to Git repositories.
func (*GitCredentialSpec) Descriptor
deprecated
func (*GitCredentialSpec) Descriptor() ([]byte, []int)
Deprecated: Use GitCredentialSpec.ProtoReflect.Descriptor instead.
func (*GitCredentialSpec) GetPassword ¶
func (x *GitCredentialSpec) GetPassword() string
func (*GitCredentialSpec) GetPersonalAccessToken ¶
func (x *GitCredentialSpec) GetPersonalAccessToken() string
func (*GitCredentialSpec) GetSshPrivateKey ¶
func (x *GitCredentialSpec) GetSshPrivateKey() string
func (*GitCredentialSpec) GetUsername ¶
func (x *GitCredentialSpec) GetUsername() string
func (*GitCredentialSpec) ProtoMessage ¶
func (*GitCredentialSpec) ProtoMessage()
func (*GitCredentialSpec) ProtoReflect ¶
func (x *GitCredentialSpec) ProtoReflect() protoreflect.Message
func (*GitCredentialSpec) Reset ¶
func (x *GitCredentialSpec) Reset()
func (*GitCredentialSpec) String ¶
func (x *GitCredentialSpec) String() string
Click to show internal directories.
Click to hide internal directories.