mockup

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestCatalogConnector

func CreateTestCatalogConnector(t ginkgo.GinkgoTInterface)

func KillServer

func KillServer()

func MockCatalogConnector

func MockCatalogConnector()

MockCatalogConnector returns fake data location details based on the catalog id

Types

type ClusterLister

type ClusterLister struct {
}

ClusterLister is a mockup cluster manager

func (*ClusterLister) GetClusters

func (m *ClusterLister) GetClusters() ([]multicluster.Cluster, error)

GetClusters returns the cluster config for testing

type MockPolicyCompiler

type MockPolicyCompiler struct {
	pc.IPolicyCompiler
}

MockPolicyCompiler is a mock for PolicyCompiler interface used in tests

func (*MockPolicyCompiler) GetPoliciesDecisions

func (s *MockPolicyCompiler) GetPoliciesDecisions(in *pb.ApplicationContext) (*pb.PoliciesDecisions, error)

GetPoliciesDecisions implements the PolicyCompiler interface

Jump to

Keyboard shortcuts

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