Documentation ¶
Index ¶
- Constants
- type Integration
- type IntegrationAlreadyExistsError
- type IntegrationCreation
- type IntegrationUnauthorizedError
- type IntegrationsService
- func (is *IntegrationsService) CreateArtifactoryIntegration(integrationName, url, user, apikey string) (id int, err error)
- func (is *IntegrationsService) CreateBitbucketIntegration(integrationName, username, token string) (id int, err error)
- func (is *IntegrationsService) CreateBitbucketServerIntegration(integrationName, url, username, passwordOrToken string) (id int, err error)
- func (is *IntegrationsService) CreateGithubEnterpriseIntegration(integrationName, url, token string) (id int, err error)
- func (is *IntegrationsService) CreateGithubIntegration(integrationName, token string) (id int, err error)
- func (is *IntegrationsService) CreateGitlabIntegration(integrationName, url, token string) (id int, err error)
- func (is *IntegrationsService) DeleteIntegration(integrationId int) error
- func (is *IntegrationsService) GetAllIntegrations() ([]Integration, error)
- func (is *IntegrationsService) GetIntegrationById(integrationId int) (*Integration, error)
- func (is *IntegrationsService) GetIntegrationByName(name string) (*Integration, error)
- type PipelinesNotAvailableError
- type PipelinesSystemInfo
- type Source
- type SourceAlreadyExistsError
- type SourcesService
- type SystemService
Constants ¶
View Source
const ( ArtifactoryName = "artifactory" GithubName = "github" GithubEnterpriseName = "githubEnterprise" BitbucketName = "bitbucket" BitbucketServerName = "bitbucketServerBasic" GitlabName = "gitlab" )
View Source
const ( DefaultPipelinesFileFilter = "pipelines.yml" SourcesRestApi = "api/v1/pipelinesources/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Integration ¶
type Integration struct { Name string `json:"name,omitempty"` MasterIntegrationId int `json:"masterIntegrationId,omitempty"` MasterIntegrationName string `json:"masterIntegrationName,omitempty"` ProjectId int `json:"projectId,omitempty"` Environments []string `json:"environments,omitempty"` // Following fields returned when fetching or creating integration: Id int `json:"id,omitempty"` }
type IntegrationAlreadyExistsError ¶
type IntegrationAlreadyExistsError struct {
InnerError error
}
func (*IntegrationAlreadyExistsError) Error ¶
func (*IntegrationAlreadyExistsError) Error() string
type IntegrationCreation ¶
type IntegrationCreation struct { Integration FormJSONValues []jsonValues `json:"formJSONValues,omitempty"` }
Using this separate struct for creation because FormJSONValues may have values of any type.
type IntegrationUnauthorizedError ¶
type IntegrationUnauthorizedError struct {
}func (*IntegrationUnauthorizedError) Error ¶
func (*IntegrationUnauthorizedError) Error() string
type IntegrationsService ¶
type IntegrationsService struct { auth.ServiceDetails // contains filtered or unexported fields }
func NewIntegrationsService ¶
func NewIntegrationsService(client *jfroghttpclient.JfrogHttpClient) *IntegrationsService
func (*IntegrationsService) CreateArtifactoryIntegration ¶
func (is *IntegrationsService) CreateArtifactoryIntegration(integrationName, url, user, apikey string) (id int, err error)
func (*IntegrationsService) CreateBitbucketIntegration ¶
func (is *IntegrationsService) CreateBitbucketIntegration(integrationName, username, token string) (id int, err error)
func (*IntegrationsService) CreateBitbucketServerIntegration ¶
func (is *IntegrationsService) CreateBitbucketServerIntegration(integrationName, url, username, passwordOrToken string) (id int, err error)
func (*IntegrationsService) CreateGithubEnterpriseIntegration ¶
func (is *IntegrationsService) CreateGithubEnterpriseIntegration(integrationName, url, token string) (id int, err error)
func (*IntegrationsService) CreateGithubIntegration ¶
func (is *IntegrationsService) CreateGithubIntegration(integrationName, token string) (id int, err error)
func (*IntegrationsService) CreateGitlabIntegration ¶
func (is *IntegrationsService) CreateGitlabIntegration(integrationName, url, token string) (id int, err error)
func (*IntegrationsService) DeleteIntegration ¶
func (is *IntegrationsService) DeleteIntegration(integrationId int) error
func (*IntegrationsService) GetAllIntegrations ¶
func (is *IntegrationsService) GetAllIntegrations() ([]Integration, error)
func (*IntegrationsService) GetIntegrationById ¶
func (is *IntegrationsService) GetIntegrationById(integrationId int) (*Integration, error)
func (*IntegrationsService) GetIntegrationByName ¶
func (is *IntegrationsService) GetIntegrationByName(name string) (*Integration, error)
type PipelinesNotAvailableError ¶ added in v0.23.0
type PipelinesNotAvailableError struct {
InnerError error
}
func (*PipelinesNotAvailableError) Error ¶ added in v0.23.0
func (*PipelinesNotAvailableError) Error() string
type PipelinesSystemInfo ¶
type Source ¶
type Source struct { ProjectId int `json:"projectId,omitempty"` ProjectIntegrationId int `json:"projectIntegrationId,omitempty"` RepositoryFullName string `json:"repositoryFullName,omitempty"` Branch string `json:"branch,omitempty"` FileFilter string `json:"fileFilter,omitempty"` // For multibranch pipelines only: IsMultiBranch bool `json:"isMultiBranch,omitempty"` BranchExcludePattern string `json:"branchExcludePattern,omitempty"` BranchIncludePattern string `json:"branchIncludePattern,omitempty"` Id int `json:"id,omitempty"` }
type SourceAlreadyExistsError ¶
type SourceAlreadyExistsError struct {
InnerError error
}
func (*SourceAlreadyExistsError) Error ¶
func (*SourceAlreadyExistsError) Error() string
type SourcesService ¶
type SourcesService struct { auth.ServiceDetails // contains filtered or unexported fields }
func NewSourcesService ¶
func NewSourcesService(client *jfroghttpclient.JfrogHttpClient) *SourcesService
func (*SourcesService) AddSource ¶
func (ss *SourcesService) AddSource(projectIntegrationId int, repositoryFullName, branch, fileFilter string) (id int, err error)
func (*SourcesService) DeleteSource ¶
func (ss *SourcesService) DeleteSource(sourceId int) error
type SystemService ¶
type SystemService struct { auth.ServiceDetails // contains filtered or unexported fields }
func NewSystemService ¶
func NewSystemService(client *jfroghttpclient.JfrogHttpClient) *SystemService
func (*SystemService) GetSystemInfo ¶
func (ss *SystemService) GetSystemInfo() (*PipelinesSystemInfo, error)
Click to show internal directories.
Click to hide internal directories.