v1alpha1

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

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

Enum value maps for AnalysisMessageBase_Level.

View Source
var (
	MessageMarshaler   = &jsonpb.Marshaler{}
	MessageUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var File_analysis_v1alpha1_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AnalysisMessageBase

type AnalysisMessageBase struct {
	Type *AnalysisMessageBase_Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Represents how severe a message is. Required.
	Level AnalysisMessageBase_Level `protobuf:"varint,2,opt,name=level,proto3,enum=istio.analysis.v1alpha1.AnalysisMessageBase_Level" json:"level,omitempty"`
	// A url pointing to the Istio documentation for this specific error type.
	// Should be of the form
	// `^http(s)?://(preliminary\.)?istio.io/docs/reference/config/analysis/`
	// Required.
	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. All information should be static with respect to the error code.

func (*AnalysisMessageBase) DeepCopy

func (in *AnalysisMessageBase) DeepCopy() *AnalysisMessageBase

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageBase. Required by controller-gen.

func (*AnalysisMessageBase) DeepCopyInterface

func (in *AnalysisMessageBase) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageBase. Required by controller-gen.

func (*AnalysisMessageBase) DeepCopyInto

func (in *AnalysisMessageBase) DeepCopyInto(out *AnalysisMessageBase)

DeepCopyInto supports using AnalysisMessageBase within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *AnalysisMessageBase) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for AnalysisMessageBase

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

func (*AnalysisMessageBase) UnmarshalJSON

func (this *AnalysisMessageBase) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for AnalysisMessageBase

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

const (
	AnalysisMessageBase_UNKNOWN AnalysisMessageBase_Level = 0 // invalid, but included for proto compatibility for 0 values
	AnalysisMessageBase_ERROR   AnalysisMessageBase_Level = 3
	AnalysisMessageBase_WARNING AnalysisMessageBase_Level = 8
	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.
	// Required.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify
	// the message type. (e.g. "IST0001" is mapped to the "InternalError" message
	// type.) 0000-0100 are reserved. Required.
	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. Name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between name and code. (i.e. do not re-use names or codes between message types.)

func (*AnalysisMessageBase_Type) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageBase_Type. Required by controller-gen.

func (*AnalysisMessageBase_Type) DeepCopyInterface

func (in *AnalysisMessageBase_Type) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageBase_Type. Required by controller-gen.

func (*AnalysisMessageBase_Type) DeepCopyInto

func (in *AnalysisMessageBase_Type) DeepCopyInto(out *AnalysisMessageBase_Type)

DeepCopyInto supports using AnalysisMessageBase_Type within kubernetes types, where deepcopy-gen is used.

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) GetName

func (x *AnalysisMessageBase_Type) GetName() string

func (*AnalysisMessageBase_Type) MarshalJSON

func (this *AnalysisMessageBase_Type) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for AnalysisMessageBase_Type

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

func (*AnalysisMessageBase_Type) UnmarshalJSON

func (this *AnalysisMessageBase_Type) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for AnalysisMessageBase_Type

type AnalysisMessageWeakSchema

type AnalysisMessageWeakSchema struct {

	// Required
	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. Required.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// A go-style template string (https://golang.org/pkg/fmt/#hdr-Printing)
	// defining how to combine the args for a  particular message into a log line.
	// Required.
	Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"`
	// A description of the arguments for a particular message type
	Args []*AnalysisMessageWeakSchema_ArgType `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

AnalysisMessageWeakSchema is the set of information that's needed to define a weakly-typed schema. The purpose of this proto is to provide a mechanism for validating istio/istio/galley/pkg/config/analysis/msg/messages.yaml to make sure that we don't allow committing underspecified types.

func (*AnalysisMessageWeakSchema) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageWeakSchema. Required by controller-gen.

func (*AnalysisMessageWeakSchema) DeepCopyInterface

func (in *AnalysisMessageWeakSchema) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageWeakSchema. Required by controller-gen.

func (*AnalysisMessageWeakSchema) DeepCopyInto

DeepCopyInto supports using AnalysisMessageWeakSchema within kubernetes types, where deepcopy-gen is used.

func (*AnalysisMessageWeakSchema) Descriptor deprecated

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

Deprecated: Use AnalysisMessageWeakSchema.ProtoReflect.Descriptor instead.

func (*AnalysisMessageWeakSchema) GetArgs

func (*AnalysisMessageWeakSchema) GetDescription

func (x *AnalysisMessageWeakSchema) GetDescription() string

func (*AnalysisMessageWeakSchema) GetMessageBase

func (x *AnalysisMessageWeakSchema) GetMessageBase() *AnalysisMessageBase

func (*AnalysisMessageWeakSchema) GetTemplate

func (x *AnalysisMessageWeakSchema) GetTemplate() string

func (*AnalysisMessageWeakSchema) MarshalJSON

func (this *AnalysisMessageWeakSchema) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for AnalysisMessageWeakSchema

func (*AnalysisMessageWeakSchema) ProtoMessage

func (*AnalysisMessageWeakSchema) ProtoMessage()

func (*AnalysisMessageWeakSchema) ProtoReflect

func (*AnalysisMessageWeakSchema) Reset

func (x *AnalysisMessageWeakSchema) Reset()

func (*AnalysisMessageWeakSchema) String

func (x *AnalysisMessageWeakSchema) String() string

func (*AnalysisMessageWeakSchema) UnmarshalJSON

func (this *AnalysisMessageWeakSchema) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for AnalysisMessageWeakSchema

type AnalysisMessageWeakSchema_ArgType

type AnalysisMessageWeakSchema_ArgType struct {

	// Required
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Should be a golang type, used in code generation.
	// Ideally this will change to a less language-pinned type before this gets
	// out of alpha, but for compatibility with current istio/istio code it's
	// go_type for now.
	GoType string `protobuf:"bytes,2,opt,name=go_type,json=goType,proto3" json:"go_type,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalysisMessageWeakSchema_ArgType) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageWeakSchema_ArgType. Required by controller-gen.

func (*AnalysisMessageWeakSchema_ArgType) DeepCopyInterface

func (in *AnalysisMessageWeakSchema_ArgType) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisMessageWeakSchema_ArgType. Required by controller-gen.

func (*AnalysisMessageWeakSchema_ArgType) DeepCopyInto

DeepCopyInto supports using AnalysisMessageWeakSchema_ArgType within kubernetes types, where deepcopy-gen is used.

func (*AnalysisMessageWeakSchema_ArgType) Descriptor deprecated

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

Deprecated: Use AnalysisMessageWeakSchema_ArgType.ProtoReflect.Descriptor instead.

func (*AnalysisMessageWeakSchema_ArgType) GetGoType

func (*AnalysisMessageWeakSchema_ArgType) GetName

func (*AnalysisMessageWeakSchema_ArgType) MarshalJSON

func (this *AnalysisMessageWeakSchema_ArgType) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for AnalysisMessageWeakSchema_ArgType

func (*AnalysisMessageWeakSchema_ArgType) ProtoMessage

func (*AnalysisMessageWeakSchema_ArgType) ProtoMessage()

func (*AnalysisMessageWeakSchema_ArgType) ProtoReflect

func (*AnalysisMessageWeakSchema_ArgType) Reset

func (*AnalysisMessageWeakSchema_ArgType) String

func (*AnalysisMessageWeakSchema_ArgType) UnmarshalJSON

func (this *AnalysisMessageWeakSchema_ArgType) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for AnalysisMessageWeakSchema_ArgType

type GenericAnalysisMessage

type GenericAnalysisMessage struct {

	// Required
	MessageBase *AnalysisMessageBase `protobuf:"bytes,1,opt,name=message_base,json=messageBase,proto3" json:"message_base,omitempty"`
	// Any message-type specific arguments that need to get codified. Optional.
	Args *_struct.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// A list of strings specifying the resource identifiers that were the cause
	// of message generation. A "path" here is a (NAMESPACE\/)?RESOURCETYPE/NAME
	// tuple that uniquely identifies a particular resource. There doesn't seem to
	// be a single concept for this, but this is intuitively taken from
	// https://kubernetes.io/docs/reference/using-api/api-concepts/#standard-api-terminology
	// At least one is required.
	ResourcePaths []string `protobuf:"bytes,3,rep,name=resource_paths,json=resourcePaths,proto3" json:"resource_paths,omitempty"`
	// contains filtered or unexported fields
}

GenericAnalysisMessage is an instance of an AnalysisMessage defined by a schema, whose metaschema is AnalysisMessageWeakSchema. (Names are hard.) Code should be able to perform validation of arguments as needed by using the message type information to look at the AnalysisMessageWeakSchema and examine the list of args at runtime. Developers can also create stronger-typed versions of GenericAnalysisMessage for well-known and stable message types.

func (*GenericAnalysisMessage) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericAnalysisMessage. Required by controller-gen.

func (*GenericAnalysisMessage) DeepCopyInterface

func (in *GenericAnalysisMessage) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GenericAnalysisMessage. Required by controller-gen.

func (*GenericAnalysisMessage) DeepCopyInto

func (in *GenericAnalysisMessage) DeepCopyInto(out *GenericAnalysisMessage)

DeepCopyInto supports using GenericAnalysisMessage within kubernetes types, where deepcopy-gen is used.

func (*GenericAnalysisMessage) Descriptor deprecated

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

Deprecated: Use GenericAnalysisMessage.ProtoReflect.Descriptor instead.

func (*GenericAnalysisMessage) GetArgs

func (x *GenericAnalysisMessage) GetArgs() *_struct.Struct

func (*GenericAnalysisMessage) GetMessageBase

func (x *GenericAnalysisMessage) GetMessageBase() *AnalysisMessageBase

func (*GenericAnalysisMessage) GetResourcePaths

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

func (*GenericAnalysisMessage) MarshalJSON

func (this *GenericAnalysisMessage) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for GenericAnalysisMessage

func (*GenericAnalysisMessage) ProtoMessage

func (*GenericAnalysisMessage) ProtoMessage()

func (*GenericAnalysisMessage) ProtoReflect

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

func (*GenericAnalysisMessage) Reset

func (x *GenericAnalysisMessage) Reset()

func (*GenericAnalysisMessage) String

func (x *GenericAnalysisMessage) String() string

func (*GenericAnalysisMessage) UnmarshalJSON

func (this *GenericAnalysisMessage) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for GenericAnalysisMessage

type InternalErrorAnalysisMessage

type InternalErrorAnalysisMessage struct {

	// Required
	MessageBase *AnalysisMessageBase `protobuf:"bytes,1,opt,name=message_base,json=messageBase,proto3" json:"message_base,omitempty"`
	// Any detail regarding specifics of the error. Should be human-readable.
	Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

InternalErrorAnalysisMessage is a strongly-typed message representing some error in Istio code that prevented us from performing analysis at all.

func (*InternalErrorAnalysisMessage) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalErrorAnalysisMessage. Required by controller-gen.

func (*InternalErrorAnalysisMessage) DeepCopyInterface

func (in *InternalErrorAnalysisMessage) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new InternalErrorAnalysisMessage. Required by controller-gen.

func (*InternalErrorAnalysisMessage) DeepCopyInto

DeepCopyInto supports using InternalErrorAnalysisMessage within kubernetes types, where deepcopy-gen is used.

func (*InternalErrorAnalysisMessage) Descriptor deprecated

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

Deprecated: Use InternalErrorAnalysisMessage.ProtoReflect.Descriptor instead.

func (*InternalErrorAnalysisMessage) GetDetail

func (x *InternalErrorAnalysisMessage) GetDetail() string

func (*InternalErrorAnalysisMessage) GetMessageBase

func (*InternalErrorAnalysisMessage) MarshalJSON

func (this *InternalErrorAnalysisMessage) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for InternalErrorAnalysisMessage

func (*InternalErrorAnalysisMessage) ProtoMessage

func (*InternalErrorAnalysisMessage) ProtoMessage()

func (*InternalErrorAnalysisMessage) ProtoReflect

func (*InternalErrorAnalysisMessage) Reset

func (x *InternalErrorAnalysisMessage) Reset()

func (*InternalErrorAnalysisMessage) String

func (*InternalErrorAnalysisMessage) UnmarshalJSON

func (this *InternalErrorAnalysisMessage) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for InternalErrorAnalysisMessage

Jump to

Keyboard shortcuts

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