Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultName = "tekton-ci-hook-secrets"
DefaultName is the name that is used for comparing GitHub hooks.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeSecretGetter ¶
type KubeSecretGetter struct {
// contains filtered or unexported fields
}
KubeSecretGetter is an implementation of SecretGetter.
func New ¶
func New(ns, n string, c kubernetes.Interface) *KubeSecretGetter
New creates and returns a KubeSecretGetter that looks up the hook secret as a key in a known v1.Secret.
type MockSecret ¶
type MockSecret struct{}
MockSecret implements the SecretGetter but returns an empty string, which go-scm uses to indicate that it should not check the secret.
func NewMock ¶
func NewMock() MockSecret
NewMock returns a simple secret getter that returns an empty secret token.
This causes the go-scm webhook parser to ignore the header.
Click to show internal directories.
Click to hide internal directories.