Versions in this module Expand all Collapse all v0 v0.0.1 Aug 12, 2021 Changes in this version + const ErrorCodeFailedValidation + const ErrorCodeInvalidProviderSpec + const ErrorCodeNotFoundPrivateKey + const ErrorCodeRuntimeError + const GitHubCommitStatusError + const GitHubCommitStatusFailure + const GitHubCommitStatusPending + const GitHubCommitStatusSuccessful + func NewGitHubApp(ctx context.Context, p *v1alpha1.Provider, k client.Client) (*GitHubApp, *ProviderError) + func NewSlackApp(ctx context.Context, p *v1alpha1.Provider, k client.Client) (*SlackApp, *ProviderError) + func ResolveProvider(ctx context.Context, p *v1alpha1.Provider, k8s client.Client) (app Provider, err *ProviderError) + type ErrorCode string + type GitHubApp struct + AppId int64 + BaseURL *string + PrivateKey SecretBytes + func (a *GitHubApp) Notify(ctx context.Context, pr *pipelinesv1beta1.PipelineRun) *ProviderError + type Provider interface + Notify func(ctx context.Context, pr *pipelinesv1beta1.PipelineRun) *ProviderError + type ProviderError struct + Code ErrorCode + Message string + func NewFailedValidationError(msg string) *ProviderError + func NewInvalidProviderSpecError(msg string) *ProviderError + func NewNotFoundPrivateKeyError(msg string) *ProviderError + func NewRuntimeError(msg string) *ProviderError + func (e *ProviderError) Error() string + type SecretBytes struct + func NewSecretBytes(data []byte) SecretBytes + func (s *SecretBytes) GetNoRedacted() []byte + func (s *SecretBytes) GetNoRedactedString() string + func (s *SecretBytes) GoString() string + func (s *SecretBytes) MarshalJSON() ([]byte, error) + func (s *SecretBytes) String() string + type SecretString struct + func NewSecretString(data string) SecretString + func (s *SecretString) GetNoRedacted() []byte + func (s *SecretString) GetNoRedactedString() string + func (s *SecretString) GoString() string + func (s *SecretString) MarshalJSON() ([]byte, error) + func (s *SecretString) String() string + type SlackApp struct + AccessToken SecretBytes + Channels []v1alpha1.SlackChannel + func (a *SlackApp) Notify(ctx context.Context, pr *pipelinesv1beta1.PipelineRun) *ProviderError