helper

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package helper implements helper functions used for unit tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFakeClusterInfo

func GetFakeClusterInfo(server string, cert *x509.Certificate) string

GetFakeClusterInfo returns the cluster-info configmap

func GetFakePinnipedInfo

func GetFakePinnipedInfo(pinnipedInfo PinnipedInfo) string

GetFakePinnipedInfo returns the pinniped-info configmap

func NewCLIPlugin

func NewCLIPlugin(options TestCLIPluginOption) v1alpha1.CLIPlugin

NewCLIPlugin returns new NewCLIPlugin object

Types

type PinnipedInfo

type PinnipedInfo struct {
	ClusterName              string `json:"cluster_name"`
	ConciergeEndpoint        string `json:"concierge_endpoint"`
	Issuer                   string `json:"issuer"`
	IssuerCABundleData       string `json:"issuer_ca_bundle_data"`
	ConciergeIsClusterScoped bool   `json:"concierge_is_cluster_scoped,string"`
}

PinnipedInfo contains settings for the supervisor.

type TestCLIPluginOption

type TestCLIPluginOption struct {
	Name               string
	Description        string
	RecommendedVersion string
}

TestCLIPluginOption describes options for CLIPlugin

Jump to

Keyboard shortcuts

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