auth

package
v0.0.0-...-7999f25 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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 string, repoUrl string, sshServerPublicKeys []string, urlPath string) error

Authenticate using ssh public and private keys.

func StoreURL

func StoreURL(data string, 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