Help us shape the future of Go! Take the 2026 Go Developer Survey

gitOps

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 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:"-"`
	TargetRevision string `json:"-"`
	UserEmailId    string `json:"-"`
	Description    string `json:"-"`
	UserId         int32  `json:"-"`
}

func (GitOpsConfigDto) GetHostUrl added in v1.4.0

func (dto GitOpsConfigDto) GetHostUrl() string

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