Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientGetter ¶
type ClientGetter interface {
Get(*v1alpha1.GoogleCloudRepositoriesSource) (*pubsub.Client, *sourcerepo.Service, error)
}
ClientGetter can obtain Google Cloud API clients.
type ClientGetterFunc ¶
type ClientGetterFunc func(*v1alpha1.GoogleCloudRepositoriesSource) (*pubsub.Client, *sourcerepo.Service, error)
ClientGetterFunc allows the use of ordinary functions as ClientGetter.
func (ClientGetterFunc) Get ¶
func (f ClientGetterFunc) Get(src *v1alpha1.GoogleCloudRepositoriesSource) (*pubsub.Client, *sourcerepo.Service, error)
Get implements ClientGetter.
type ClientGetterWithSecretGetter ¶
type ClientGetterWithSecretGetter struct {
// contains filtered or unexported fields
}
ClientGetterWithSecretGetter gets Google Cloud clients using static credentials retrieved using a Secret getter.
func NewClientGetter ¶
func NewClientGetter(sg NamespacedSecretsGetter) *ClientGetterWithSecretGetter
NewClientGetter returns a ClientGetter for the given secrets getter.
func (*ClientGetterWithSecretGetter) Get ¶
func (g *ClientGetterWithSecretGetter) Get(src *v1alpha1.GoogleCloudRepositoriesSource) (*pubsub.Client, *sourcerepo.Service, error)
Get implements ClientGetter.
type NamespacedSecretsGetter ¶
type NamespacedSecretsGetter func(namespace string) coreclientv1.SecretInterface
Click to show internal directories.
Click to hide internal directories.