servicemesh

package
v0.0.0-...-e639e21 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AnalysisMessageBase_Level_name = map[int32]string{
		0:  "LEVEL_UNSPECIFIED",
		3:  "ERROR",
		8:  "WARNING",
		12: "INFO",
	}
	AnalysisMessageBase_Level_value = map[string]int32{
		"LEVEL_UNSPECIFIED": 0,
		"ERROR":             3,
		"WARNING":           8,
		"INFO":              12,
	}
)

Enum value maps for AnalysisMessageBase_Level.

View Source
var File_google_cloud_gkehub_v1alpha_servicemesh_servicemesh_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AnalysisMessage

type AnalysisMessage struct {

	// Details common to all types of Istio and ServiceMesh analysis messages.
	MessageBase *AnalysisMessageBase `protobuf:"bytes,1,opt,name=message_base,json=messageBase,proto3" json:"message_base,omitempty"`
	// A human readable description of what the error means. It is suitable for
	// non-internationalize display purposes.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// A list of strings specifying the resource identifiers that were the cause
	// of message generation.
	// A "path" here may be:
	// * MEMBERSHIP_ID if the cause is a specific member cluster
	// * MEMBERSHIP_ID/(NAMESPACE\/)?RESOURCETYPE/NAME if the cause is a resource
	// in a cluster
	ResourcePaths []string `protobuf:"bytes,3,rep,name=resource_paths,json=resourcePaths,proto3" json:"resource_paths,omitempty"`
	// A UI can combine these args with a template (based on message_base.type)
	// to produce an internationalized message.
	Args *structpb.Struct `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

AnalysisMessage is a single message produced by an analyzer, and it used to communicate to the end user about the state of their Service Mesh configuration.

func (*AnalysisMessage) Descriptor deprecated

func (*AnalysisMessage) Descriptor() ([]byte, []int)

Deprecated: Use AnalysisMessage.ProtoReflect.Descriptor instead.

func (*AnalysisMessage) GetArgs

func (x *AnalysisMessage) GetArgs() *structpb.Struct

func (*AnalysisMessage) GetDescription

func (x *AnalysisMessage) GetDescription() string

func (*AnalysisMessage) GetMessageBase

func (x *AnalysisMessage) GetMessageBase() *AnalysisMessageBase

func (*AnalysisMessage) GetResourcePaths

func (x *AnalysisMessage) GetResourcePaths() []string

func (*AnalysisMessage) ProtoMessage

func (*AnalysisMessage) ProtoMessage()

func (*AnalysisMessage) ProtoReflect

func (x *AnalysisMessage) ProtoReflect() protoreflect.Message

func (*AnalysisMessage) Reset

func (x *AnalysisMessage) Reset()

func (*AnalysisMessage) String

func (x *AnalysisMessage) String() string

type AnalysisMessageBase

type AnalysisMessageBase struct {

	// Represents the specific type of a message.
	Type *AnalysisMessageBase_Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Represents how severe a message is.
	Level AnalysisMessageBase_Level `` /* 135-byte string literal not displayed */
	// A url pointing to the Service Mesh or Istio documentation for this specific
	// error type.
	DocumentationUrl string `protobuf:"bytes,3,opt,name=documentation_url,json=documentationUrl,proto3" json:"documentation_url,omitempty"`
	// contains filtered or unexported fields
}

AnalysisMessageBase describes some common information that is needed for all messages.

func (*AnalysisMessageBase) Descriptor deprecated

func (*AnalysisMessageBase) Descriptor() ([]byte, []int)

Deprecated: Use AnalysisMessageBase.ProtoReflect.Descriptor instead.

func (*AnalysisMessageBase) GetDocumentationUrl

func (x *AnalysisMessageBase) GetDocumentationUrl() string

func (*AnalysisMessageBase) GetLevel

func (*AnalysisMessageBase) GetType

func (*AnalysisMessageBase) ProtoMessage

func (*AnalysisMessageBase) ProtoMessage()

func (*AnalysisMessageBase) ProtoReflect

func (x *AnalysisMessageBase) ProtoReflect() protoreflect.Message

func (*AnalysisMessageBase) Reset

func (x *AnalysisMessageBase) Reset()

func (*AnalysisMessageBase) String

func (x *AnalysisMessageBase) String() string

type AnalysisMessageBase_Level

type AnalysisMessageBase_Level int32

The values here are chosen so that more severe messages get sorted higher, as well as leaving space in between to add more later See istio.analysis.v1alpha1.AnalysisMessageBase.Level

const (
	// Illegal. Same istio.analysis.v1alpha1.AnalysisMessageBase.Level.UNKNOWN.
	AnalysisMessageBase_LEVEL_UNSPECIFIED AnalysisMessageBase_Level = 0
	// ERROR represents a misconfiguration that must be fixed.
	AnalysisMessageBase_ERROR AnalysisMessageBase_Level = 3
	// WARNING represents a misconfiguration that should be fixed.
	AnalysisMessageBase_WARNING AnalysisMessageBase_Level = 8
	// INFO represents an informational finding.
	AnalysisMessageBase_INFO AnalysisMessageBase_Level = 12
)

func (AnalysisMessageBase_Level) Descriptor

func (AnalysisMessageBase_Level) Enum

func (AnalysisMessageBase_Level) EnumDescriptor deprecated

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

Deprecated: Use AnalysisMessageBase_Level.Descriptor instead.

func (AnalysisMessageBase_Level) Number

func (AnalysisMessageBase_Level) String

func (x AnalysisMessageBase_Level) String() string

func (AnalysisMessageBase_Level) Type

type AnalysisMessageBase_Type

type AnalysisMessageBase_Type struct {

	// A human-readable name for the message type. e.g. "InternalError",
	// "PodMissingProxy". This should be the same for all messages of the same
	// type. (This corresponds to the `name` field in open-source Istio.)
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
	// to uniquely identify the message type. (e.g. "IST0001" is mapped to the
	// "InternalError" message type.)
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1.AnalysisMessageBase.Type

func (*AnalysisMessageBase_Type) Descriptor deprecated

func (*AnalysisMessageBase_Type) Descriptor() ([]byte, []int)

Deprecated: Use AnalysisMessageBase_Type.ProtoReflect.Descriptor instead.

func (*AnalysisMessageBase_Type) GetCode

func (x *AnalysisMessageBase_Type) GetCode() string

func (*AnalysisMessageBase_Type) GetDisplayName

func (x *AnalysisMessageBase_Type) GetDisplayName() string

func (*AnalysisMessageBase_Type) ProtoMessage

func (*AnalysisMessageBase_Type) ProtoMessage()

func (*AnalysisMessageBase_Type) ProtoReflect

func (x *AnalysisMessageBase_Type) ProtoReflect() protoreflect.Message

func (*AnalysisMessageBase_Type) Reset

func (x *AnalysisMessageBase_Type) Reset()

func (*AnalysisMessageBase_Type) String

func (x *AnalysisMessageBase_Type) String() string

type FeatureState

type FeatureState struct {

	// Output only. Results of running Service Mesh analyzers.
	AnalysisMessages []*AnalysisMessage `protobuf:"bytes,1,rep,name=analysis_messages,json=analysisMessages,proto3" json:"analysis_messages,omitempty"`
	// contains filtered or unexported fields
}

**Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub Controller.

func (*FeatureState) Descriptor deprecated

func (*FeatureState) Descriptor() ([]byte, []int)

Deprecated: Use FeatureState.ProtoReflect.Descriptor instead.

func (*FeatureState) GetAnalysisMessages

func (x *FeatureState) GetAnalysisMessages() []*AnalysisMessage

func (*FeatureState) ProtoMessage

func (*FeatureState) ProtoMessage()

func (*FeatureState) ProtoReflect

func (x *FeatureState) ProtoReflect() protoreflect.Message

func (*FeatureState) Reset

func (x *FeatureState) Reset()

func (*FeatureState) String

func (x *FeatureState) String() string

type MembershipState

type MembershipState struct {

	// Output only. Results of running Service Mesh analyzers.
	AnalysisMessages []*AnalysisMessage `protobuf:"bytes,1,rep,name=analysis_messages,json=analysisMessages,proto3" json:"analysis_messages,omitempty"`
	// contains filtered or unexported fields
}

**Service Mesh**: State for a single Membership, as analyzed by the Service Mesh Hub Controller.

func (*MembershipState) Descriptor deprecated

func (*MembershipState) Descriptor() ([]byte, []int)

Deprecated: Use MembershipState.ProtoReflect.Descriptor instead.

func (*MembershipState) GetAnalysisMessages

func (x *MembershipState) GetAnalysisMessages() []*AnalysisMessage

func (*MembershipState) ProtoMessage

func (*MembershipState) ProtoMessage()

func (*MembershipState) ProtoReflect

func (x *MembershipState) ProtoReflect() protoreflect.Message

func (*MembershipState) Reset

func (x *MembershipState) Reset()

func (*MembershipState) String

func (x *MembershipState) String() string

Jump to

Keyboard shortcuts

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