Documentation ¶
Index ¶
Constants ¶
View Source
const ( GIT_REPO_DEFAULT = "Default" GIT_REPO_NOT_CONFIGURED = "NOT_CONFIGURED" // The value of the constant has been used in the migration script for `custom_gitops_repo_url`; Need to add another migration script if the value is updated. )
Variables ¶
This section is empty.
Functions ¶
func IsGitOpsRepoConfigured ¶ added in v0.7.2
Types ¶
type GitOpsConfigDto ¶
type GitOpsConfigDto struct { Id int `json:"id,omitempty"` Provider string `json:"provider" validate:"oneof=GITLAB GITHUB AZURE_DEVOPS BITBUCKET_CLOUD"` Username string `json:"username"` Token string `json:"token"` GitLabGroupId string `json:"gitLabGroupId"` GitHubOrgId string `json:"gitHubOrgId"` Host string `json:"host"` Active bool `json:"active"` AzureProjectName string `json:"azureProjectName"` BitBucketWorkspaceId string `json:"bitBucketWorkspaceId"` BitBucketProjectKey string `json:"bitBucketProjectKey"` AllowCustomRepository bool `json:"allowCustomRepository"` EnableTLSVerification bool `json:"enableTLSVerification"` TLSConfig *bean.TLSConfig `json:"tlsConfig"` IsCADataPresent bool `json:"isCADataPresent"` IsTLSCertDataPresent bool `json:"isTLSCertDataPresent"` IsTLSKeyDataPresent bool `json:"isTLSKeyDataPresent"` // TODO refactoring: create different struct for internal fields GitRepoName string `json:"-"` UserEmailId string `json:"-"` Description string `json:"-"` UserId int32 `json:"-"` }
type GitRepoRequestDto ¶
type GitRepoRequestDto struct { Host string `json:"host"` Provider string `json:"provider"` GitRepoName string `json:"gitRepoName"` Username string `json:"username"` UserEmailId string `json:"userEmailId"` Token string `json:"token"` GitLabGroupId string `json:"gitLabGroupId"` GitHubOrgId string `json:"gitHubOrgId"` AzureProjectName string `json:"azureProjectName"` BitBucketWorkspaceId string `json:"bitBucketWorkspaceId"` BitBucketProjectKey string `json:"bitBucketProjectKey"` }
Click to show internal directories.
Click to hide internal directories.