Documentation ¶
Index ¶
- Constants
- func ComponentRepoToBranchesMap(components []*ScmComponent) map[string][]string
- func ComponentUrlToBranchesMap(components []*ScmComponent) map[string][]string
- func HostToComponentMap(components []*ScmComponent) map[string][]*ScmComponent
- func NamespaceToComponentMap(components []*ScmComponent) map[string][]*ScmComponent
- func PlatformToComponentMap(components []*ScmComponent) map[string][]*ScmComponent
- type APIEndpoint
- type GithubAPIEndpoint
- type GitlabAPIEndpoint
- type ScmComponent
- func (s ScmComponent) Branch() string
- func (s ScmComponent) ComponentName() string
- func (s ScmComponent) NamespaceName() string
- func (s ScmComponent) Platform() string
- func (s ScmComponent) Repository() string
- func (s ScmComponent) RepositoryHost() string
- func (s ScmComponent) RepositoryUrl() *url.URL
- func (s ScmComponent) RepositoryUrlString() string
- type UnknownAPIEndpoint
Constants ¶
View Source
const InternalDefaultBranch = "$DEFAULTBRANCH"
Variables ¶
This section is empty.
Functions ¶
func ComponentRepoToBranchesMap ¶
func ComponentRepoToBranchesMap(components []*ScmComponent) map[string][]string
func ComponentUrlToBranchesMap ¶
func ComponentUrlToBranchesMap(components []*ScmComponent) map[string][]string
func HostToComponentMap ¶
func HostToComponentMap(components []*ScmComponent) map[string][]*ScmComponent
func NamespaceToComponentMap ¶
func NamespaceToComponentMap(components []*ScmComponent) map[string][]*ScmComponent
func PlatformToComponentMap ¶
func PlatformToComponentMap(components []*ScmComponent) map[string][]*ScmComponent
Types ¶
type APIEndpoint ¶
APIEndpoint interface defines the method to get the API endpoint url for the source code providers.
func BuildAPIEndpoint ¶
func BuildAPIEndpoint(endpointType string) APIEndpoint
BuildAPIEndpoint constructs and returns an endpoint object based on the type provided type.
type GithubAPIEndpoint ¶
type GithubAPIEndpoint struct { }
GithubAPIEndpoint represents an API endpoint for GitHub.
func (*GithubAPIEndpoint) APIEndpoint ¶
func (g *GithubAPIEndpoint) APIEndpoint(host string) string
APIEndpoint returns the GitHub API endpoint.
type GitlabAPIEndpoint ¶
type GitlabAPIEndpoint struct { }
GitlabAPIEndpoint represents an API endpoint for GitLab.
func (*GitlabAPIEndpoint) APIEndpoint ¶
func (g *GitlabAPIEndpoint) APIEndpoint(host string) string
APIEndpoint returns the API GitLab endpoint.
type ScmComponent ¶
type ScmComponent struct {
// contains filtered or unexported fields
}
func NewScmComponent ¶
func (ScmComponent) Branch ¶
func (s ScmComponent) Branch() string
func (ScmComponent) ComponentName ¶
func (s ScmComponent) ComponentName() string
func (ScmComponent) NamespaceName ¶
func (s ScmComponent) NamespaceName() string
func (ScmComponent) Platform ¶
func (s ScmComponent) Platform() string
func (ScmComponent) Repository ¶
func (s ScmComponent) Repository() string
func (ScmComponent) RepositoryHost ¶
func (s ScmComponent) RepositoryHost() string
func (ScmComponent) RepositoryUrl ¶
func (s ScmComponent) RepositoryUrl() *url.URL
func (ScmComponent) RepositoryUrlString ¶
func (s ScmComponent) RepositoryUrlString() string
type UnknownAPIEndpoint ¶
type UnknownAPIEndpoint struct { }
UnknownAPIEndpoint represents an endpoint for unknown or non existed provider. It returns empty string for api endpoint.
func (*UnknownAPIEndpoint) APIEndpoint ¶
func (g *UnknownAPIEndpoint) APIEndpoint(host string) string
APIEndpoint returns the GitLab endpoint.
Click to show internal directories.
Click to hide internal directories.