auth

package
v0.0.0-...-008b4a6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateWithDeveloperConnect

func AuthenticateWithDeveloperConnect(gitRepositoryLink string, rf DCRepoClient, urlPath string) error

Authenticate using Developer Connect.

func AuthenticateWithSSHKeys

func AuthenticateWithSSHKeys(sf SMClient, sshPrivateKeySecretsResource, repoURL, urlPath string, sshServerPublicKeys []string) error

Authenticate using ssh public and private keys.

func StoreURL

func StoreURL(data, urlPath string) error

Types

type DCRepoClient

type DCRepoClient interface {
	AccessReadWriteToken(string) (string, error)
	Get(string) (string, error)
}

type SMClient

type SMClient interface {
	AccessSecretVersion(req *secretmanagerpb.AccessSecretVersionRequest) (*secretmanagerpb.AccessSecretVersionResponse, error)
}

Jump to

Keyboard shortcuts

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