istio: istio.io/istio/mixer/template/listentry Index | Files

package listentry

import "istio.io/istio/mixer/template/listentry"

Index

Package Files

template_handler.gen.go template_handler_service.pb.go

Constants

const TemplateName = "listentry"

Fully qualified name of the template

Variables

var (
    ErrInvalidLengthTemplateHandlerService = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowTemplateHandlerService   = fmt.Errorf("proto: integer overflow")
)

func RegisterHandleListEntryServiceServer Uses

func RegisterHandleListEntryServiceServer(s *grpc.Server, srv HandleListEntryServiceServer)

type HandleListEntryRequest Uses

type HandleListEntryRequest struct {
    // 'listentry' instance.
    Instance *InstanceMsg `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
    // Adapter specific handler configuration.
    //
    // Note: Backends can also implement [InfrastructureBackend][https://istio.io/docs/reference/config/mixer/istio.mixer.adapter.model.v1beta1.html#InfrastructureBackend]
    // service and therefore opt to receive handler configuration during session creation through [InfrastructureBackend.CreateSession][TODO: Link to this fragment]
    // call. In that case, adapter_config will have type_url as 'google.protobuf.Any.type_url' and would contain string
    // value of session_id (returned from InfrastructureBackend.CreateSession).
    AdapterConfig *types.Any `protobuf:"bytes,2,opt,name=adapter_config,json=adapterConfig,proto3" json:"adapter_config,omitempty"`
    // Id to dedupe identical requests from Mixer.
    DedupId string `protobuf:"bytes,3,opt,name=dedup_id,json=dedupId,proto3" json:"dedup_id,omitempty"`
}

Request message for HandleListEntry method.

func (*HandleListEntryRequest) Descriptor Uses

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

func (*HandleListEntryRequest) Marshal Uses

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

func (*HandleListEntryRequest) MarshalTo Uses

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

func (*HandleListEntryRequest) MarshalToSizedBuffer Uses

func (m *HandleListEntryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HandleListEntryRequest) ProtoMessage Uses

func (*HandleListEntryRequest) ProtoMessage()

func (*HandleListEntryRequest) Reset Uses

func (m *HandleListEntryRequest) Reset()

func (*HandleListEntryRequest) Size Uses

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

func (*HandleListEntryRequest) String Uses

func (this *HandleListEntryRequest) String() string

func (*HandleListEntryRequest) Unmarshal Uses

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

func (*HandleListEntryRequest) XXX_DiscardUnknown Uses

func (m *HandleListEntryRequest) XXX_DiscardUnknown()

func (*HandleListEntryRequest) XXX_Marshal Uses

func (m *HandleListEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HandleListEntryRequest) XXX_Merge Uses

func (m *HandleListEntryRequest) XXX_Merge(src proto.Message)

func (*HandleListEntryRequest) XXX_Size Uses

func (m *HandleListEntryRequest) XXX_Size() int

func (*HandleListEntryRequest) XXX_Unmarshal Uses

func (m *HandleListEntryRequest) XXX_Unmarshal(b []byte) error

type HandleListEntryServiceClient Uses

type HandleListEntryServiceClient interface {
    // HandleListEntry is called by Mixer at request-time to deliver 'listentry' instances to the backend.
    HandleListEntry(ctx context.Context, in *HandleListEntryRequest, opts ...grpc.CallOption) (*v1beta11.CheckResult, error)
}

HandleListEntryServiceClient is the client API for HandleListEntryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHandleListEntryServiceClient Uses

func NewHandleListEntryServiceClient(cc *grpc.ClientConn) HandleListEntryServiceClient

type HandleListEntryServiceServer Uses

type HandleListEntryServiceServer interface {
    // HandleListEntry is called by Mixer at request-time to deliver 'listentry' instances to the backend.
    HandleListEntry(context.Context, *HandleListEntryRequest) (*v1beta11.CheckResult, error)
}

HandleListEntryServiceServer is the server API for HandleListEntryService service.

type Handler Uses

type Handler interface {
    adapter.Handler

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

Handler must be implemented by adapter code if it wants to process data associated with the 'listentry' 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.

The name of each instance can be used as a key into the Type map supplied to the adapter at configuration time via the method 'SetListEntryTypes'. These Type associated with an instance describes the shape of the instance

type HandlerBuilder Uses

type HandlerBuilder interface {
    adapter.HandlerBuilder

    // SetListEntryTypes is invoked by Mixer to pass the template-specific Type information for instances that an adapter
    // may receive at runtime. The type information describes the shape of the instance.
    SetListEntryTypes(map[string]*Type)
}

HandlerBuilder must be implemented by adapters if they want to process data associated with the 'listentry' 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 Uses

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

    // Specifies the entry to verify in the list. This value can either be a string or an IP address.
    Value interface{}
}

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

The `listentry` template is used to verify the presence/absence of a string within a list.

When writing the configuration, the value for the fields associated with this template can either be a literal or an [expression](https://istio.io/docs/reference//config/policy-and-telemetry/expression-language/). Please note that if the datatype of a field is not istio.policy.v1beta1.Value, then the expression's [inferred type](https://istio.io/docs/reference//config/policy-and-telemetry/expression-language/#type-checking) must match the datatype of the field.

type InstanceMsg Uses

type InstanceMsg struct {
    // Name of the instance as specified in configuration.
    Name string `protobuf:"bytes,72295727,opt,name=name,proto3" json:"name,omitempty"`
    // Specifies the entry to verify in the list. This value can either be a string or an IP address.
    Value *v1beta1.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

Contains instance payload for 'listentry' template. This is passed to infrastructure backends during request-time through HandleListEntryService.HandleListEntry.

func (*InstanceMsg) Descriptor Uses

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

func (*InstanceMsg) Marshal Uses

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

func (*InstanceMsg) MarshalTo Uses

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

func (*InstanceMsg) MarshalToSizedBuffer Uses

func (m *InstanceMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InstanceMsg) ProtoMessage Uses

func (*InstanceMsg) ProtoMessage()

func (*InstanceMsg) Reset Uses

func (m *InstanceMsg) Reset()

func (*InstanceMsg) Size Uses

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

func (*InstanceMsg) String Uses

func (this *InstanceMsg) String() string

func (*InstanceMsg) Unmarshal Uses

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

func (*InstanceMsg) XXX_DiscardUnknown Uses

func (m *InstanceMsg) XXX_DiscardUnknown()

func (*InstanceMsg) XXX_Marshal Uses

func (m *InstanceMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstanceMsg) XXX_Merge Uses

func (m *InstanceMsg) XXX_Merge(src proto.Message)

func (*InstanceMsg) XXX_Size Uses

func (m *InstanceMsg) XXX_Size() int

func (*InstanceMsg) XXX_Unmarshal Uses

func (m *InstanceMsg) XXX_Unmarshal(b []byte) error

type InstanceParam Uses

type InstanceParam struct {
    // Specifies the entry to verify in the list. This value can either be a string or an IP address.
    Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

Represents instance configuration schema for 'listentry' template.

func (*InstanceParam) Descriptor Uses

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

func (*InstanceParam) Marshal Uses

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

func (*InstanceParam) MarshalTo Uses

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

func (*InstanceParam) MarshalToSizedBuffer Uses

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

func (*InstanceParam) ProtoMessage Uses

func (*InstanceParam) ProtoMessage()

func (*InstanceParam) Reset Uses

func (m *InstanceParam) Reset()

func (*InstanceParam) Size Uses

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

func (*InstanceParam) String Uses

func (this *InstanceParam) String() string

func (*InstanceParam) Unmarshal Uses

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

func (*InstanceParam) XXX_DiscardUnknown Uses

func (m *InstanceParam) XXX_DiscardUnknown()

func (*InstanceParam) XXX_Marshal Uses

func (m *InstanceParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstanceParam) XXX_Merge Uses

func (m *InstanceParam) XXX_Merge(src proto.Message)

func (*InstanceParam) XXX_Size Uses

func (m *InstanceParam) XXX_Size() int

func (*InstanceParam) XXX_Unmarshal Uses

func (m *InstanceParam) XXX_Unmarshal(b []byte) error

type Type Uses

type Type struct {
    // Specifies the entry to verify in the list. This value can either be a string or an IP address.
    Value v1beta1.ValueType `protobuf:"varint,1,opt,name=value,proto3,enum=istio.policy.v1beta1.ValueType" json:"value,omitempty"`
}

Contains inferred type information about specific instance of 'listentry' template. This is passed to infrastructure backends during configuration-time through [InfrastructureBackend.CreateSession][TODO: Link to this fragment].

func (*Type) Descriptor Uses

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

func (*Type) Marshal Uses

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

func (*Type) MarshalTo Uses

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

func (*Type) MarshalToSizedBuffer Uses

func (m *Type) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Type) ProtoMessage Uses

func (*Type) ProtoMessage()

func (*Type) Reset Uses

func (m *Type) Reset()

func (*Type) Size Uses

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

func (*Type) String Uses

func (this *Type) String() string

func (*Type) Unmarshal Uses

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

func (*Type) XXX_DiscardUnknown Uses

func (m *Type) XXX_DiscardUnknown()

func (*Type) XXX_Marshal Uses

func (m *Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Type) XXX_Merge Uses

func (m *Type) XXX_Merge(src proto.Message)

func (*Type) XXX_Size Uses

func (m *Type) XXX_Size() int

func (*Type) XXX_Unmarshal Uses

func (m *Type) XXX_Unmarshal(b []byte) error

type UnimplementedHandleListEntryServiceServer Uses

type UnimplementedHandleListEntryServiceServer struct {
}

UnimplementedHandleListEntryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHandleListEntryServiceServer) HandleListEntry Uses

func (*UnimplementedHandleListEntryServiceServer) HandleListEntry(ctx context.Context, req *HandleListEntryRequest) (*v1beta11.CheckResult, error)

Package listentry imports 16 packages (graph) and is imported by 9 packages. Updated 2019-10-11. Refresh now. Tools for package owners.