multisign

package
v0.0.0-...-6e3e3a3 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoAccountID           = errors.New("could not retrieve account ID from oauth2 token")
	ErrInvalidCredentialType = errors.New("invalid multisign credential type")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Type           CredentialType
	GoogleAccessID string
	PrivateKey     []byte
}

func New

func New(ctx context.Context, cred *google.Credentials) (*Client, error)

func (*Client) SignedURL

func (c *Client) SignedURL(ctx context.Context, bucket, path string, opts storage.SignedURLOptions) (string, error)

type CredentialType

type CredentialType string
var (
	CredentialTypeServiceAccountKey CredentialType = "SERVICE_ACCOUNT_KEY"
	CredentialTypeWorkloadIdentity  CredentialType = "WORKLOAD_IDENTITY"
)

Jump to

Keyboard shortcuts

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