repo

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 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 MockRepo

type MockRepo struct {
	mock.Mock
}

func NewMockRepo

func NewMockRepo() *MockRepo

func (*MockRepo) DownloadIndex

func (m *MockRepo) DownloadIndex(destPath string) error

func (*MockRepo) HasIndex

func (m *MockRepo) HasIndex() (bool, error)

func (*MockRepo) IsLocked

func (m *MockRepo) IsLocked() bool

func (*MockRepo) Lock

func (m *MockRepo) Lock() error

func (*MockRepo) RepoURL

func (m *MockRepo) RepoURL() string

func (*MockRepo) Unlock

func (m *MockRepo) Unlock() error

func (*MockRepo) UploadChart

func (m *MockRepo) UploadChart(fromPath string) error

func (*MockRepo) UploadIndex

func (m *MockRepo) UploadIndex(fromPath string) error

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