services

package
v0.27.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

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

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 {
	InnerError error
}

func (*IntegrationUnauthorizedError) Error

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

type PipelinesSystemInfo

type PipelinesSystemInfo struct {
	ServiceId string `json:"serviceId,omitempty"`
	Version   string `json:"version,omitempty"`
}

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

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

func (*SourcesService) GetSource

func (ss *SourcesService) GetSource(sourceId int) (*Source, 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)

Jump to

Keyboard shortcuts

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