publish

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPublisher

func NewPublisher(repo repo.Repo, runner shell.Runner, scratchDir string, dryRun bool) (*publisher, error)

NewPublisher is a constructor for a publisher

Types

type MockPublisher

type MockPublisher struct {
	mock.Mock
}

func NewMockPublisher

func NewMockPublisher() *MockPublisher

func (*MockPublisher) ChartDir

func (m *MockPublisher) ChartDir() string

func (*MockPublisher) Close

func (m *MockPublisher) Close() error

func (*MockPublisher) Index

func (m *MockPublisher) Index() index.Index

func (*MockPublisher) Publish

func (m *MockPublisher) Publish() (count int, err error)

type Publisher

type Publisher interface {
	// ChartDir returns the path where new chart packages should be copied for upload
	ChartDir() string
	// Index returns a queryable copy of th eindex that is currently in the Helm repo bucket
	Index() index.Index
	// Publish uploads all charts in the chart directory to the target Helm repo.
	// Can only be called once for a given publisher instance!
	Publish() (count int, err error)
	// Close unlocks the repo and releases all resources associated with this publisher
	Close() error
}

Publisher is a utility for publishing Helm charts to a GCS bucket-hosted Helm repository.

Jump to

Keyboard shortcuts

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