kymasources

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ChartsDirName const defines directory name which contains helm charts
	ChartsDirName = "resources"
)
View Source
const (
	// InjectedDirName const defines name for directory with injected kyma sources
	InjectedDirName = "injected"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemWrapper

type FilesystemWrapper interface {
	Exists(path string) bool
	CreateDir(path string) error
}

FilesystemWrapper defines interface abstraction for interacting with file system

func NewFilesystemWrapper

func NewFilesystemWrapper() FilesystemWrapper

NewFilesystemWrapper return instance of `FilesystemWrapper`

type FilesystemWrapperMock

type FilesystemWrapperMock struct{}

FilesystemWrapperMock is a mocked implementation of `FilesystemWrapper“ interface

func (FilesystemWrapperMock) CreateDir

func (FilesystemWrapperMock) CreateDir(path string) error

CreateDir is a mocked method which always panic

func (FilesystemWrapperMock) Exists

func (FilesystemWrapperMock) Exists(path string) bool

Exists is a mocked method which always panic

type KymaPackage

type KymaPackage interface {
	GetChartsDirPath() string
}

KymaPackage is the interface for interacting with kyma sources package

func NewKymaPackage

func NewKymaPackage(packageDirPath, version string) KymaPackage

NewKymaPackage returns instance of `KymaPackage` type

type KymaPackageMock

type KymaPackageMock struct{}

KymaPackageMock is a mocked implementation of KymaPackage interface

func (KymaPackageMock) GetChartsDirPath

func (KymaPackageMock) GetChartsDirPath() string

GetChartsDirPath is a mocked method which always panic

type KymaPackages

type KymaPackages interface {
	HasInjectedSources() bool
	GetInjectedPackage() (KymaPackage, error)
	GetPackage(version string) (KymaPackage, error)
	FetchPackage(url, version string) error
}

KymaPackages is the interface for interacting with kyma packages

func NewKymaPackages

func NewKymaPackages(fsWrapper FilesystemWrapper, cmdExecutor toolkit.CommandExecutor, rootDir string) KymaPackages

NewKymaPackages returns instance of `KymaPackages` type

type KymaPackagesMock

type KymaPackagesMock struct{}

KymaPackagesMock is a mocked implementation of KymaPackages interface

func (KymaPackagesMock) FetchPackage

func (KymaPackagesMock) FetchPackage(url, version string) error

FetchPackage is a mocked method which always panic

func (KymaPackagesMock) GetInjectedPackage

func (KymaPackagesMock) GetInjectedPackage() (KymaPackage, error)

GetInjectedPackage is a mocked method which always panic

func (KymaPackagesMock) GetPackage

func (KymaPackagesMock) GetPackage(version string) (KymaPackage, error)

GetPackage is a mocked method which always panic

func (KymaPackagesMock) HasInjectedSources

func (KymaPackagesMock) HasInjectedSources() bool

HasInjectedSources is a mocked method which always panic

Jump to

Keyboard shortcuts

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