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 ¶
- Variables
- type GcpServiceSetting
- func (*GcpServiceSetting) Descriptor() ([]byte, []int)
- func (m *GcpServiceSetting) Marshal() (dAtA []byte, err error)
- func (m *GcpServiceSetting) MarshalTo(dAtA []byte) (int, error)
- func (*GcpServiceSetting) ProtoMessage()
- func (m *GcpServiceSetting) Reset()
- func (m *GcpServiceSetting) Size() (n int)
- func (this *GcpServiceSetting) String() string
- func (m *GcpServiceSetting) Unmarshal(dAtA []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (this *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- type Quota
- func (*Quota) Descriptor() ([]byte, []int)
- func (m *Quota) Marshal() (dAtA []byte, err error)
- func (m *Quota) MarshalTo(dAtA []byte) (int, error)
- func (*Quota) ProtoMessage()
- func (m *Quota) Reset()
- func (m *Quota) Size() (n int)
- func (this *Quota) String() string
- func (m *Quota) Unmarshal(dAtA []byte) error
- type RuntimeConfig
- func (*RuntimeConfig) Descriptor() ([]byte, []int)
- func (m *RuntimeConfig) Marshal() (dAtA []byte, err error)
- func (m *RuntimeConfig) MarshalTo(dAtA []byte) (int, error)
- func (*RuntimeConfig) ProtoMessage()
- func (m *RuntimeConfig) Reset()
- func (m *RuntimeConfig) Size() (n int)
- func (this *RuntimeConfig) String() string
- func (m *RuntimeConfig) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
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) ProtoMessage ¶
func (*Params) ProtoMessage()
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) ProtoMessage ¶
func (*Quota) ProtoMessage()
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) 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