mock

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MockValidData = `` /* 2114-byte string literal not displayed */

	MockInvalidData = `` /* 461-byte string literal not displayed */

	MockNoVersions = `` /* 454-byte string literal not displayed */

)

Variables

View Source
var (
	DeprecatedMock = []results.ResultItem{
		{
			Group:   "something.anything",
			Version: "v1beta1",
			Kind:    "blah",
			Replacement: &v1alpha1.GroupVersionKind{
				Group:   "something.anything",
				Version: "v1",
				Kind:    "blah",
			},
			K8sVersion: "v1.22",
			Items: []results.Item{
				{
					Scope:      "Object",
					Namespace:  "default",
					ObjectName: "bloh",
				},
			},
		},
	}

	DeletedMock = []results.ResultItem{
		{
			Group:   "something.anything",
			Version: "v1alpha1",
			Kind:    "blah",
			Replacement: &v1alpha1.GroupVersionKind{
				Group:   "something.anything",
				Version: "v1",
				Kind:    "blah",
			},
			K8sVersion: "v1.19",
			Items: []results.Item{
				{
					Scope:      "Object",
					Namespace:  "default",
					ObjectName: "bloh",
				},
			},
		},
	}
)

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewMockStore

func NewMockStore(loadData, shoulderr bool) *Store

func (*Store) GetDeprecations

func (m *Store) GetDeprecations() (deprecated, deleted []results.ResultItem, err error)

Jump to

Keyboard shortcuts

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