google

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppDefaultCredentials

func AppDefaultCredentials() (string, error)

func DownloadObject

func DownloadObject(bucketName string, savePath string, object string) error

func GetObjectAttributes added in v1.1.0

func GetObjectAttributes(
	bucketName string,
	objectPath string,
) (*storage.ObjectAttrs, error)

func SetRequiredOrgIAMRoles

func SetRequiredOrgIAMRoles(org *Organization, g string, r []string) error

TODO: update to include any kind of principal

func UploadObject

func UploadObject(
	bucketName string,
	objectPath string,
	localPath string,
) error

Types

type Organization

type Organization struct {
	Domain     string `json:"domain"`
	Id         int    `json:"id"`
	CustomerId string `json:"customer_id"`
}

Types

func GetOrganization

func GetOrganization(domain string) (*Organization, error)

TODO: move this to a method for an org struct

type UserClaim

type UserClaim struct {
	jwt.RegisteredClaims
	ID    int
	Email string
	Name  string
}

Jump to

Keyboard shortcuts

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