common

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	State_name = map[int32]string{
		0: "Unknown",
		1: "New",
		2: "Inactive",
		3: "Prepared",
		4: "Active",
		5: "Removed",
		6: "Error",
	}
	State_value = map[string]int32{
		"Unknown":  0,
		"New":      1,
		"Inactive": 2,
		"Prepared": 3,
		"Active":   4,
		"Removed":  5,
		"Error":    6,
	}
)

Enum value maps for State.

View Source
var File_common_common_proto protoreflect.FileDescriptor

Functions

func StringSliceContains

func StringSliceContains(slice []string, item string) bool

func StringSpliceDifference

func StringSpliceDifference(slice1 []string, slice2 []string) []string

Types

type State

type State int32
const (
	State_Unknown  State = 0
	State_New      State = 1
	State_Inactive State = 2
	State_Prepared State = 3
	State_Active   State = 4
	State_Removed  State = 5
	State_Error    State = 6
)

func (State) Descriptor added in v1.2.3

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum added in v1.2.3

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

func (State) EnumDescriptor() ([]byte, []int)

Deprecated: Use State.Descriptor instead.

func (State) Number added in v1.2.3

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type added in v1.2.3

func (State) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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