config

package
v0.0.0-...-fe632b3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package config is a generated protocol buffer package.

The `rbac` adapter is deprecated by native RBAC implemented in Envoy proxy. See https://istio.io/docs/concepts/security/#enabling-authorization for enabling the native RBAC with your existing service role and service role binding.

It is generated from these files:

mixer/adapter/rbac/config/config.proto

It has these top-level messages:

Params

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Params

type Params struct {
	// URL for the config store. It is used to initiate a new Store instance.
	// Following are some examples of the config store URL:
	// * "k8s://"
	// * "fs:///tmp/testdata/configroot"
	ConfigStoreUrl string `protobuf:"bytes,1,opt,name=config_store_url,json=configStoreUrl,proto3" json:"config_store_url,omitempty"`
	// The duration for which authorization results may be cached.
	CacheDuration time.Duration `protobuf:"bytes,2,opt,name=cache_duration,json=cacheDuration,stdduration" json:"cache_duration"`
}

Configuration format for the `rbac` adapter.

For example, the following configuration defines a RBAC handler with configuration store URL pointing to Kubernetes etcd ("k8s://"). If you want to run Mixer locally, you can set the configuration store URL to a local directory (e.g., "fs:///tmp/testdata/configroot").

```yaml apiVersion: "config.istio.io/v1alpha2" kind: rbac metadata:

name: rbachandler
namespace: istio-system

spec:

config_store_url: "fs:///tmp/testdata/config"

```

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (this *Params) String() string

func (*Params) Unmarshal

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

Jump to

Keyboard shortcuts

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