gitOps

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

func IsGitOpsRepoConfigured(gitRepoUrl string) bool

func IsGitOpsRepoNotConfigured

func IsGitOpsRepoNotConfigured(gitRepoUrl string) bool

Types

type DetailedErrorGitOpsConfigResponse

type DetailedErrorGitOpsConfigResponse struct {
	SuccessfulStages  []string          `json:"successfulStages"`
	StageErrorMap     map[string]string `json:"stageErrorMap"`
	ValidatedOn       time.Time         `json:"validatedOn"`
	DeleteRepoFailed  bool              `json:"deleteRepoFailed"`
	ValidationSkipped bool              `json:"validationSkipped"`
}

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"`
}

Jump to

Keyboard shortcuts

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