Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resource = helm_releases.Release{
	Name:      "my-release-name",
	Namespace: "my-namespace",
	Chart: &chart.Chart{
		Metadata: &chart.Metadata{
			Name:    "my-chart",
			Version: "1.2.3",
			Icon:    "chart-icon",
		},
	},
	Info: &helm_releases.Info{
		LastDeployed: &timestamp.Timestamp{},
		Status: &helm_releases.Status{
			Code:      200,
			Resources: "my-resources",
			Notes:     "my-notes",
		},
	},
}

Resource represents a Helm release resource

Functions

func NewMockCharts

func NewMockCharts(m MockedMethods) data.Charts

NewMockCharts returns a new mockCharts

func NewMockedBrokenClient

func NewMockedBrokenClient() data.Client

NewMockedBrokenClient Fails to initialize

func NewMockedClient

func NewMockedClient() data.Client

NewMockedClient returns a mocked version of the Helm Client

Types

type MockedMethods added in v0.4.0

type MockedMethods struct {
	All    func() ([]*models.ChartPackage, error)
	Search func(params chartsapi.SearchChartsParams) ([]*models.ChartPackage, error)
}

MockedMethods contains pointers to mocked implementations of methods

Jump to

Keyboard shortcuts

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