istio_mixer_adapter_sample_myapa

package
v0.0.0-...-730bba4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package istio_mixer_adapter_sample_myapa is a generated protocol buffer package.

It is generated from these files:

mixer/template/sample/apa/Apa_instance.proto

It has these top-level messages:

InstanceParam
Resource1InstanceParam
Resource2InstanceParam
Resource3InstanceParam

Index

Constants

View Source
const TemplateName = "myapa"

Fully qualified name of the template

Variables

View Source
var (
	ErrInvalidLengthApaInstance = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApaInstance   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	adapter.Handler

	// HandleMyApa is called by Mixer at request time to deliver instances to
	// to an adapter.
	GenerateMyApaAttributes(context.Context, *Instance) (*Output, error)
}

Handler must be implemented by adapter code if it wants to process data associated with the 'myapa' template.

Mixer uses this interface to call into the adapter at request time in order to dispatch created instances to the adapter. Adapters take the incoming instances and do what they need to achieve their primary function.

type HandlerBuilder

type HandlerBuilder interface {
	adapter.HandlerBuilder
}

HandlerBuilder must be implemented by adapters if they want to process data associated with the 'myapa' template.

Mixer uses this interface to call into the adapter at configuration time to configure it with adapter-specific configuration as well as all template-specific type information.

type Instance

type Instance struct {
	// Name of the instance as specified in configuration.
	Name string

	Int64Primitive int64

	BoolPrimitive bool

	DoublePrimitive float64

	StringPrimitive string

	DimensionsFixedInt64ValueDType map[string]int64

	TimeStamp time.Time

	Duration time.Duration

	Res3Map map[string]*Resource3

	OptionalIP net.IP

	Email adapter.EmailAddress
}

Instance is constructed by Mixer for the 'myapa' template.

myapa template is ..

type InstanceParam

type InstanceParam struct {
	Int64Primitive                 string                             `protobuf:"bytes,1,opt,name=int64Primitive,proto3" json:"int64Primitive,omitempty"`
	BoolPrimitive                  string                             `protobuf:"bytes,2,opt,name=boolPrimitive,proto3" json:"boolPrimitive,omitempty"`
	DoublePrimitive                string                             `protobuf:"bytes,3,opt,name=doublePrimitive,proto3" json:"doublePrimitive,omitempty"`
	StringPrimitive                string                             `protobuf:"bytes,4,opt,name=stringPrimitive,proto3" json:"stringPrimitive,omitempty"`
	DimensionsFixedInt64ValueDType map[string]string                  `` /* 194-byte string literal not displayed */
	TimeStamp                      string                             `protobuf:"bytes,6,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	Duration                       string                             `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"`
	Res3Map                        map[string]*Resource3InstanceParam `` /* 156-byte string literal not displayed */
	OptionalIP                     string                             `protobuf:"bytes,9,opt,name=optionalIP,proto3" json:"optionalIP,omitempty"`
	Email                          string                             `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"`
	// Attribute names to expression mapping. These expressions can use the fields from the output object
	// returned by the attribute producing adapters using $out.<fieldName> notation. For example:
	// source.ip : $out.source_pod_ip
	// In the above example, source.ip attribute will be added to the existing attribute list and its value will be set to
	// the value of source_pod_ip field of the output returned by the adapter.
	AttributeBindings map[string]string `` /* 200-byte string literal not displayed */
}

func (*InstanceParam) Descriptor

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

func (*InstanceParam) Equal

func (this *InstanceParam) Equal(that interface{}) bool

func (*InstanceParam) GetAttributeBindings

func (m *InstanceParam) GetAttributeBindings() map[string]string

func (*InstanceParam) GetBoolPrimitive

func (m *InstanceParam) GetBoolPrimitive() string

func (*InstanceParam) GetDimensionsFixedInt64ValueDType

func (m *InstanceParam) GetDimensionsFixedInt64ValueDType() map[string]string

func (*InstanceParam) GetDoublePrimitive

func (m *InstanceParam) GetDoublePrimitive() string

func (*InstanceParam) GetDuration

func (m *InstanceParam) GetDuration() string

func (*InstanceParam) GetEmail

func (m *InstanceParam) GetEmail() string

func (*InstanceParam) GetInt64Primitive

func (m *InstanceParam) GetInt64Primitive() string

func (*InstanceParam) GetOptionalIP

func (m *InstanceParam) GetOptionalIP() string

func (*InstanceParam) GetRes3Map

func (m *InstanceParam) GetRes3Map() map[string]*Resource3InstanceParam

func (*InstanceParam) GetStringPrimitive

func (m *InstanceParam) GetStringPrimitive() string

func (*InstanceParam) GetTimeStamp

func (m *InstanceParam) GetTimeStamp() string

func (*InstanceParam) GoString

func (this *InstanceParam) GoString() string

func (*InstanceParam) Marshal

func (m *InstanceParam) Marshal() (dAtA []byte, err error)

func (*InstanceParam) MarshalTo

func (m *InstanceParam) MarshalTo(dAtA []byte) (int, error)

func (*InstanceParam) ProtoMessage

func (*InstanceParam) ProtoMessage()

func (*InstanceParam) Reset

func (m *InstanceParam) Reset()

func (*InstanceParam) Size

func (m *InstanceParam) Size() (n int)

func (*InstanceParam) String

func (this *InstanceParam) String() string

func (*InstanceParam) Unmarshal

func (m *InstanceParam) Unmarshal(dAtA []byte) error

type Output

type Output struct {
	Int64Primitive int64

	BoolPrimitive bool

	DoublePrimitive float64

	StringPrimitive string

	TimeStamp time.Time

	Duration time.Duration

	Email adapter.EmailAddress

	OutIp net.IP

	OutStrMap map[string]string
	// contains filtered or unexported fields
}

Output struct is returned by the attribute producing adapters that handle this template.

func NewOutput

func NewOutput() *Output

func (*Output) SetBoolPrimitive

func (o *Output) SetBoolPrimitive(val bool)

func (*Output) SetDoublePrimitive

func (o *Output) SetDoublePrimitive(val float64)

func (*Output) SetDuration

func (o *Output) SetDuration(val time.Duration)

func (*Output) SetEmail

func (o *Output) SetEmail(val adapter.EmailAddress)

func (*Output) SetInt64Primitive

func (o *Output) SetInt64Primitive(val int64)

func (*Output) SetOutIp

func (o *Output) SetOutIp(val net.IP)

func (*Output) SetOutStrMap

func (o *Output) SetOutStrMap(val map[string]string)

func (*Output) SetStringPrimitive

func (o *Output) SetStringPrimitive(val string)

func (*Output) SetTimeStamp

func (o *Output) SetTimeStamp(val time.Time)

func (*Output) WasSet

func (o *Output) WasSet(field string) bool

type Resource1

type Resource1 struct {
	Str string

	SelfRefRes1 *Resource1

	ResRef2 *Resource2
}

type Resource1InstanceParam

type Resource1InstanceParam struct {
	Str         string                  `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	SelfRefRes1 *Resource1InstanceParam `protobuf:"bytes,3,opt,name=self_ref_res1,json=selfRefRes1" json:"self_ref_res1,omitempty"`
	ResRef2     *Resource2InstanceParam `protobuf:"bytes,2,opt,name=resRef2" json:"resRef2,omitempty"`
}

func (*Resource1InstanceParam) Descriptor

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

func (*Resource1InstanceParam) Equal

func (this *Resource1InstanceParam) Equal(that interface{}) bool

func (*Resource1InstanceParam) GetResRef2

func (*Resource1InstanceParam) GetSelfRefRes1

func (m *Resource1InstanceParam) GetSelfRefRes1() *Resource1InstanceParam

func (*Resource1InstanceParam) GetStr

func (m *Resource1InstanceParam) GetStr() string

func (*Resource1InstanceParam) GoString

func (this *Resource1InstanceParam) GoString() string

func (*Resource1InstanceParam) Marshal

func (m *Resource1InstanceParam) Marshal() (dAtA []byte, err error)

func (*Resource1InstanceParam) MarshalTo

func (m *Resource1InstanceParam) MarshalTo(dAtA []byte) (int, error)

func (*Resource1InstanceParam) ProtoMessage

func (*Resource1InstanceParam) ProtoMessage()

func (*Resource1InstanceParam) Reset

func (m *Resource1InstanceParam) Reset()

func (*Resource1InstanceParam) Size

func (m *Resource1InstanceParam) Size() (n int)

func (*Resource1InstanceParam) String

func (this *Resource1InstanceParam) String() string

func (*Resource1InstanceParam) Unmarshal

func (m *Resource1InstanceParam) Unmarshal(dAtA []byte) error

type Resource2

type Resource2 struct {
	Str string

	Res3 *Resource3

	Res3Map map[string]*Resource3
}

type Resource2InstanceParam

type Resource2InstanceParam struct {
	Str     string                             `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"`
	Res3    *Resource3InstanceParam            `protobuf:"bytes,2,opt,name=res3" json:"res3,omitempty"`
	Res3Map map[string]*Resource3InstanceParam `` /* 156-byte string literal not displayed */
}

func (*Resource2InstanceParam) Descriptor

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

func (*Resource2InstanceParam) Equal

func (this *Resource2InstanceParam) Equal(that interface{}) bool

func (*Resource2InstanceParam) GetRes3

func (*Resource2InstanceParam) GetRes3Map

func (*Resource2InstanceParam) GetStr

func (m *Resource2InstanceParam) GetStr() string

func (*Resource2InstanceParam) GoString

func (this *Resource2InstanceParam) GoString() string

func (*Resource2InstanceParam) Marshal

func (m *Resource2InstanceParam) Marshal() (dAtA []byte, err error)

func (*Resource2InstanceParam) MarshalTo

func (m *Resource2InstanceParam) MarshalTo(dAtA []byte) (int, error)

func (*Resource2InstanceParam) ProtoMessage

func (*Resource2InstanceParam) ProtoMessage()

func (*Resource2InstanceParam) Reset

func (m *Resource2InstanceParam) Reset()

func (*Resource2InstanceParam) Size

func (m *Resource2InstanceParam) Size() (n int)

func (*Resource2InstanceParam) String

func (this *Resource2InstanceParam) String() string

func (*Resource2InstanceParam) Unmarshal

func (m *Resource2InstanceParam) Unmarshal(dAtA []byte) error

type Resource3

type Resource3 struct {
	Int64Primitive int64

	BoolPrimitive bool

	DoublePrimitive float64

	StringPrimitive string

	DimensionsFixedInt64ValueDType map[string]int64

	TimeStamp time.Time

	Duration time.Duration
}

resource3 comment

type Resource3InstanceParam

type Resource3InstanceParam struct {
	Int64Primitive                 string            `protobuf:"bytes,1,opt,name=int64Primitive,proto3" json:"int64Primitive,omitempty"`
	BoolPrimitive                  string            `protobuf:"bytes,2,opt,name=boolPrimitive,proto3" json:"boolPrimitive,omitempty"`
	DoublePrimitive                string            `protobuf:"bytes,3,opt,name=doublePrimitive,proto3" json:"doublePrimitive,omitempty"`
	StringPrimitive                string            `protobuf:"bytes,4,opt,name=stringPrimitive,proto3" json:"stringPrimitive,omitempty"`
	DimensionsFixedInt64ValueDType map[string]string `` /* 194-byte string literal not displayed */
	TimeStamp                      string            `protobuf:"bytes,6,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	Duration                       string            `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"`
}

func (*Resource3InstanceParam) Descriptor

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

func (*Resource3InstanceParam) Equal

func (this *Resource3InstanceParam) Equal(that interface{}) bool

func (*Resource3InstanceParam) GetBoolPrimitive

func (m *Resource3InstanceParam) GetBoolPrimitive() string

func (*Resource3InstanceParam) GetDimensionsFixedInt64ValueDType

func (m *Resource3InstanceParam) GetDimensionsFixedInt64ValueDType() map[string]string

func (*Resource3InstanceParam) GetDoublePrimitive

func (m *Resource3InstanceParam) GetDoublePrimitive() string

func (*Resource3InstanceParam) GetDuration

func (m *Resource3InstanceParam) GetDuration() string

func (*Resource3InstanceParam) GetInt64Primitive

func (m *Resource3InstanceParam) GetInt64Primitive() string

func (*Resource3InstanceParam) GetStringPrimitive

func (m *Resource3InstanceParam) GetStringPrimitive() string

func (*Resource3InstanceParam) GetTimeStamp

func (m *Resource3InstanceParam) GetTimeStamp() string

func (*Resource3InstanceParam) GoString

func (this *Resource3InstanceParam) GoString() string

func (*Resource3InstanceParam) Marshal

func (m *Resource3InstanceParam) Marshal() (dAtA []byte, err error)

func (*Resource3InstanceParam) MarshalTo

func (m *Resource3InstanceParam) MarshalTo(dAtA []byte) (int, error)

func (*Resource3InstanceParam) ProtoMessage

func (*Resource3InstanceParam) ProtoMessage()

func (*Resource3InstanceParam) Reset

func (m *Resource3InstanceParam) Reset()

func (*Resource3InstanceParam) Size

func (m *Resource3InstanceParam) Size() (n int)

func (*Resource3InstanceParam) String

func (this *Resource3InstanceParam) String() string

func (*Resource3InstanceParam) Unmarshal

func (m *Resource3InstanceParam) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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