repo

package
v1.1.53 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ChartDir = "charts"

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.0.24

type Option func(*Options)

type Options

type Options struct {
	LockWaitTimeout   time.Duration
	LockExpireTimeout time.Duration
	LockObject        string
	ChartCacheControl string
	IndexCacheControl string
}

type Repo

type Repo interface {
	// RepoURL returns the public URL of the repo
	RepoURL() string
	// IsLocked returns true if the repo is locked
	IsLocked() bool
	// Unlock unlocks the repository
	Unlock() error
	// Lock locks the repository
	Lock() error
	// UploadChart uploads a chart to the bucket
	UploadChart(fromPath string) error
	// UploadIndex uploads an index to the bucket
	UploadIndex(fromPath string) error
	// HasIndex returns true if this repo has an index object
	HasIndex() (bool, error)
	// DownloadIndex downloads an index file locally
	DownloadIndex(destPath string) error
}

Repo supports interactions with GCS-based Helm repositories

func NewRepo

func NewRepo(bucket bucket.Bucket, options ...Option) Repo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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