pkg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package pkg implementation of plugin interface

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = fmt.Errorf("not Implemented")

Functions

This section is empty.

Types

type TemplateCoding

type TemplateCoding struct {
	*zap.SugaredLogger

	Client ctrlclient.Client
	// contains filtered or unexported fields
}

func (*TemplateCoding) Attributes

func (t *TemplateCoding) Attributes() map[string][]string

func (*TemplateCoding) AuthCheck

func (*TemplateCoding) AuthToken

func (t *TemplateCoding) AuthToken(ctx context.Context) (*v1alpha1.AuthToken, error)

func (*TemplateCoding) CreateGitBranch

func (*TemplateCoding) CreateGitCommitComment

func (*TemplateCoding) CreateGitCommitStatus

func (*TemplateCoding) CreateIssueBranch

func (t *TemplateCoding) CreateIssueBranch(ctx context.Context, params metav1alpha1.IssueOptions, payload metav1alpha1.Branch) (*metav1alpha1.Branch, error)

func (*TemplateCoding) CreateProject

func (t *TemplateCoding) CreateProject(ctx context.Context, project *v1alpha1.Project) (result *v1alpha1.Project, err error)

CreateProject create a project in a plugin

func (*TemplateCoding) CreatePullRequest

func (*TemplateCoding) CreateWebhook

func (*TemplateCoding) DeleteArtifact

func (t *TemplateCoding) DeleteArtifact(ctx context.Context, params metav1alpha1.ArtifactOptions) error

func (*TemplateCoding) DeleteArtifactTag

func (t *TemplateCoding) DeleteArtifactTag(ctx context.Context, params metav1alpha1.ArtifactTagOptions) error

func (*TemplateCoding) DeleteIssueBranch

func (t *TemplateCoding) DeleteIssueBranch(ctx context.Context, params metav1alpha1.IssueOptions, option metav1alpha1.ListOptions) error

func (*TemplateCoding) DeleteWebhook

func (t *TemplateCoding) DeleteWebhook(ctx context.Context, spec metav1alpha1.WebhookRegisterSpec, secret corev1.Secret) (err error)

func (*TemplateCoding) GetAddressURL

func (t *TemplateCoding) GetAddressURL() *apis.URL

func (*TemplateCoding) GetAllowEmptySecret

func (n *TemplateCoding) GetAllowEmptySecret() []string

func (*TemplateCoding) GetArtifact

func (*TemplateCoding) GetAttribute

func (t *TemplateCoding) GetAttribute(key string) []string

func (*TemplateCoding) GetCodeQuality

func (t *TemplateCoding) GetCodeQuality(ctx context.Context, projectKey string) (*metav1alpha1.CodeQuality, error)

func (*TemplateCoding) GetCodeQualityOverviewByBranch

func (t *TemplateCoding) GetCodeQualityOverviewByBranch(ctx context.Context, opt metav1alpha1.CodeQualityBaseOption) (*metav1alpha1.CodeQuality, error)

func (*TemplateCoding) GetGitBranch

func (t *TemplateCoding) GetGitBranch(ctx context.Context, repoOption metav1alpha1.GitRepo, branch string) (metav1alpha1.GitBranch, error)

func (*TemplateCoding) GetGitCommit

func (*TemplateCoding) GetGitPullRequest

func (*TemplateCoding) GetGitRepository

func (t *TemplateCoding) GetGitRepository(ctx context.Context, repoOption metav1alpha1.GitRepo) (metav1alpha1.GitRepository, error)

func (*TemplateCoding) GetImageConfig

func (*TemplateCoding) GetIntegrationClassName

func (t *TemplateCoding) GetIntegrationClassName() string

func (*TemplateCoding) GetIssue

func (*TemplateCoding) GetIssueAttribute

func (*TemplateCoding) GetOverview

func (*TemplateCoding) GetReplicationPolicyTypes

func (t *TemplateCoding) GetReplicationPolicyTypes() []string

func (*TemplateCoding) GetResourceTypes

func (t *TemplateCoding) GetResourceTypes() []string

func (*TemplateCoding) GetSecretTypes

func (t *TemplateCoding) GetSecretTypes() []string

func (*TemplateCoding) GetSupportedVersions

func (t *TemplateCoding) GetSupportedVersions() []string

func (*TemplateCoding) GetWebhookURL

func (t *TemplateCoding) GetWebhookURL() (*apis.URL, bool)

func (*TemplateCoding) IsSameResource

func (t *TemplateCoding) IsSameResource(ctx context.Context, i, j metav1alpha1.ResourceURI) bool

func (*TemplateCoding) ListArtifacts

func (*TemplateCoding) ListGitBranch

func (*TemplateCoding) ListGitCommit

func (*TemplateCoding) ListGitCommitComment

func (*TemplateCoding) ListGitCommitStatus

func (*TemplateCoding) ListGitRepository

func (t *TemplateCoding) ListGitRepository(ctx context.Context, id, keyword string, subtype metav1alpha1.ProjectSubType, listOption metav1alpha1.ListOptions) (metav1alpha1.GitRepositoryList, error)

func (*TemplateCoding) ListIssueBranches

func (*TemplateCoding) ListIssues

func (*TemplateCoding) ListProjectUsers

func (*TemplateCoding) ListProjects

func (t *TemplateCoding) ListProjects(ctx context.Context, option v1alpha1.ListOptions) (list *v1alpha1.ProjectList, err error)

ListProjects lists projects in a plugin

func (*TemplateCoding) ListRepositories

func (*TemplateCoding) ListWebhooks

func (h *TemplateCoding) ListWebhooks(ctx context.Context, uri apis.URL, secret corev1.Secret) ([]metav1alpha1.WebhookRegisterStatus, error)

func (*TemplateCoding) Path

func (t *TemplateCoding) Path() string

Path custom url path to access this plugin

func (*TemplateCoding) PullRequestEventType

func (t *TemplateCoding) PullRequestEventType() string

PullRequestEventType cloud event type of pull request hook that will match

func (*TemplateCoding) PushEventType

func (t *TemplateCoding) PushEventType() string

PushEventType cloud event type of push hook that will match

func (*TemplateCoding) ReceiveWebhook

func (t *TemplateCoding) ReceiveWebhook(ctx context.Context, req *restful.Request, secret string) (event cloudevent.Event, err error)

ReceiveWebhook basic webhook receiver actually it just receives cloud events and returns

func (*TemplateCoding) ScanImage

func (t *TemplateCoding) ScanImage(ctx context.Context, params metav1alpha1.ArtifactOptions) error

func (*TemplateCoding) SetAttribute

func (t *TemplateCoding) SetAttribute(key string, values ...string)

func (*TemplateCoding) Setup

func (t *TemplateCoding) Setup(ctx context.Context, logger *zap.SugaredLogger) error

Setup basic initialization setup for plugins

func (*TemplateCoding) TagEventType

func (t *TemplateCoding) TagEventType() string

TagEventType cloud event type of push hook that will match

func (*TemplateCoding) UpdateWebhook

Jump to

Keyboard shortcuts

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