common

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IBPCA      = "IBPCA"
	IBPPEER    = "IBPPeer"
	IBPORDERER = "IBPOrderer"
	IBPCONSOLE = "IBPConsole"
)

Variables

This section is empty.

Functions

func MSPInfoUpdateDetected

func MSPInfoUpdateDetected(oldSecret, newSecret *current.SecretSpec) bool

func ValidateCRName

func ValidateCRName(k8sclient Client, name, namespace, kind string) error
  1. Only one existing instance (of the same type as 'instance') should have the name 'instance.GetName()'; if more than one is present, return error
  2. If any instance of a different type share the same name, return error

Types

type Client

type Client interface {
	List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
}

Jump to

Keyboard shortcuts

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