gcpapi

package
v0.1.77 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSAPI

type GCSAPI interface {
	UploadObject(ctx context.Context, bucket, objectName string, content io.Reader) error
	DeleteObject(ctx context.Context, bucket, objectName string) error
}

GCSAPI defines the GCS operations used by the hosted cluster controller for OIDC document management.

type GCSClient

type GCSClient struct {
	// contains filtered or unexported fields
}

GCSClient wraps the auto-generated GCS REST client to implement GCSAPI.

func NewGCSClient

func NewGCSClient(ctx context.Context, opts ...option.ClientOption) (*GCSClient, error)

func (*GCSClient) DeleteObject

func (g *GCSClient) DeleteObject(ctx context.Context, bucket, objectName string) error

func (*GCSClient) UploadObject

func (g *GCSClient) UploadObject(ctx context.Context, bucket, objectName string, content io.Reader) error

Jump to

Keyboard shortcuts

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