config

package
v0.0.0-...-46d7da7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package config is a generated protocol buffer package.

The `servicecontrol` adapter delivers logs and metrics to [Google Service Control](https://cloud.google.com/service-control).

This adapter supports the [servicecontrolreport template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/servicecontrolreport/), the [quota template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/quota/), and the [apikey template](https://istio.io/docs/reference/config/policy-and-telemetry/templates/apikey/).

It is generated from these files:

mixer/adapter/servicecontrol/config/config.proto

It has these top-level messages:

RuntimeConfig
Quota
GcpServiceSetting
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 GcpServiceSetting

type GcpServiceSetting struct {
	// Local service name on the mesh, which matches destination.service attribute.
	MeshServiceName string `protobuf:"bytes,1,opt,name=mesh_service_name,json=meshServiceName,proto3" json:"mesh_service_name,omitempty"`
	// Fully qualified GCP service name.
	GoogleServiceName string `protobuf:"bytes,2,opt,name=google_service_name,json=googleServiceName,proto3" json:"google_service_name,omitempty"`
	// Quota configs
	Quotas []*Quota `protobuf:"bytes,3,rep,name=quotas" json:"quotas,omitempty"`
}

Adapter setting for a managed GCP service.

func (*GcpServiceSetting) Descriptor

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

func (*GcpServiceSetting) Marshal

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

func (*GcpServiceSetting) MarshalTo

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

func (*GcpServiceSetting) ProtoMessage

func (*GcpServiceSetting) ProtoMessage()

func (*GcpServiceSetting) Reset

func (m *GcpServiceSetting) Reset()

func (*GcpServiceSetting) Size

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

func (*GcpServiceSetting) String

func (this *GcpServiceSetting) String() string

func (*GcpServiceSetting) Unmarshal

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

type Params

type Params struct {
	RuntimeConfig *RuntimeConfig `protobuf:"bytes,1,opt,name=runtime_config,json=runtimeConfig" json:"runtime_config,omitempty"`
	// A path to JSON token file, usually mounted as Kubernetes secret on pod.
	CredentialPath string               `protobuf:"bytes,2,opt,name=credential_path,json=credentialPath,proto3" json:"credential_path,omitempty"`
	ServiceConfigs []*GcpServiceSetting `protobuf:"bytes,3,rep,name=service_configs,json=serviceConfigs" json:"service_configs,omitempty"`
}

Configuration format for the `servicecontrol` adapter.

Sample adapter config:

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

name: testhandler
namespace: istio-system

spec:

runtime_config:
  check_cache_size: 200
  check_result_expiration: 60s
credential_path: "/path/to/token.json"
service_configs:
  - mesh_service_name: "echo.local.svc"
    google_service_name: "echo.endpoints.cloud.goog"
    quotas:
      - name: ratelimit.quota.istio-system
        google_quota_metric_name: read-requests
        expiration: 1m

```

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

type Quota

type Quota struct {
	// Istio quota name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The corresponding Google quota metric name.
	GoogleQuotaMetricName string `` /* 128-byte string literal not displayed */
	// Quota token expiration time period.
	Expiration *google_protobuf1.Duration `protobuf:"bytes,3,opt,name=expiration" json:"expiration,omitempty"`
}

func (*Quota) Descriptor

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

func (*Quota) Marshal

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

func (*Quota) MarshalTo

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

func (*Quota) ProtoMessage

func (*Quota) ProtoMessage()

func (*Quota) Reset

func (m *Quota) Reset()

func (*Quota) Size

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

func (*Quota) String

func (this *Quota) String() string

func (*Quota) Unmarshal

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

type RuntimeConfig

type RuntimeConfig struct {
	CheckCacheSize        int32                      `protobuf:"varint,1,opt,name=check_cache_size,json=checkCacheSize,proto3" json:"check_cache_size,omitempty"`
	CheckResultExpiration *google_protobuf1.Duration `protobuf:"bytes,2,opt,name=check_result_expiration,json=checkResultExpiration" json:"check_result_expiration,omitempty"`
}

Adapter runtime config paramters.

func (*RuntimeConfig) Descriptor

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

func (*RuntimeConfig) Marshal

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

func (*RuntimeConfig) MarshalTo

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

func (*RuntimeConfig) ProtoMessage

func (*RuntimeConfig) ProtoMessage()

func (*RuntimeConfig) Reset

func (m *RuntimeConfig) Reset()

func (*RuntimeConfig) Size

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

func (*RuntimeConfig) String

func (this *RuntimeConfig) String() string

func (*RuntimeConfig) Unmarshal

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

Jump to

Keyboard shortcuts

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