config

package
v0.0.0-...-dcd54df Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

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 {
	// Apigee Base is the URI for a shared proxy on Apigee.
	// Required.
	ApigeeBase string `protobuf:"bytes,1,opt,name=apigee_base,json=apigeeBase,proto3" json:"apigee_base,omitempty"`
	// Customer Base is the URI for an organization-specific proxy on Apigee.
	// Required.
	CustomerBase string `protobuf:"bytes,2,opt,name=customer_base,json=customerBase,proto3" json:"customer_base,omitempty"`
	// Org Name is the name of the organization on Apigee.
	// Required.
	OrgName string `protobuf:"bytes,3,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"`
	// Env Name is the name of the environment on Apigee.
	// Required.
	EnvName string `protobuf:"bytes,4,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"`
	// Key is used to authenticate to the Apigee proxy endpoints, generated during provisioning.
	// Required.
	Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`
	// Secret is used to authenticate to the Apigee proxy endpoints, generated during provisioning.
	// Required.
	Secret string `protobuf:"bytes,6,opt,name=secret,proto3" json:"secret,omitempty"`
	// The local directory to be used by the adapter for temporary files.
	// Optional. Default: "/tmp/apigee-istio".
	TempDir string `protobuf:"bytes,7,opt,name=temp_dir,json=tempDir,proto3" json:"temp_dir,omitempty"`
	// The timeout to be used for adapter requests to Apigee servers.
	// Optional. Default: "30s" (30 seconds).
	ClientTimeout *types.Duration `protobuf:"bytes,8,opt,name=client_timeout,json=clientTimeout,proto3" json:"client_timeout,omitempty"`
	// Set to true to allow an unknown server SSL Certificate (eg. self-signed)
	// Optional. Default: false.
	AllowUnverifiedSSLCert bool `protobuf:"varint,9,opt,name=allowUnverifiedSSLCert,proto3" json:"allowUnverifiedSSLCert,omitempty"`
	// Path to the local Apigee Hybrid configuration file.
	// Optional. Presence indicates Hybrid environment, must not be set for SaaS or OPDK.
	HybridConfig string `protobuf:"bytes,10,opt,name=hybrid_config,json=hybridConfig,proto3" json:"hybrid_config,omitempty"`
	// Options specific to to products handling.
	Products *ParamsProductOptions `protobuf:"bytes,15,opt,name=products,proto3" json:"products,omitempty"`
	// Options specific to to analytics handling.
	Analytics *ParamsAnalyticsOptions `protobuf:"bytes,16,opt,name=analytics,proto3" json:"analytics,omitempty"`
	// Options specific to to auth handling.
	Auth *ParamsAuthOptions `protobuf:"bytes,17,opt,name=auth,proto3" json:"auth,omitempty"`
}

The Configuration for the Apigee adapter provides information on how the adapter should contact the Apigee proxies and how it should operate. Running the `apigee-istio provision` CLI command will ensure that all proxies are installed into your Apigee environment and generate this file with all required settings for you. For additional information on this adapter or support please contact anchor-prega-support@google.com.

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type ParamsAnalyticsOptions

type ParamsAnalyticsOptions struct {
	// If true, use legacy direct communication analytics protocol instead of buffering. Must be true for OPDK.
	// Optional. Default: false.
	LegacyEndpoint bool `protobuf:"varint,1,opt,name=legacy_endpoint,json=legacyEndpoint,proto3" json:"legacy_endpoint,omitempty"`
	// The number of analytics files that can be buffered before oldest files are dropped.
	// Optional. Default: 1024.
	FileLimit int64 `protobuf:"varint,2,opt,name=file_limit,json=fileLimit,proto3" json:"file_limit,omitempty"`
	// The size of the channel used to buffer rfecord sends in memory.
	// Optional. Default: 10.
	SendChannelSize int64 `protobuf:"varint,3,opt,name=send_channel_size,json=sendChannelSize,proto3" json:"send_channel_size,omitempty"`
	// How often spooled analytics are swept and sent to Apigee.
	// Optional. Default: "2m" (2 minutes).
	CollectionInterval *types.Duration `protobuf:"bytes,4,opt,name=collection_interval,json=collectionInterval,proto3" json:"collection_interval,omitempty"`
}

Options specific to to analytics handling.

func (*ParamsAnalyticsOptions) Descriptor

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

func (*ParamsAnalyticsOptions) Marshal

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

func (*ParamsAnalyticsOptions) MarshalTo

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

func (*ParamsAnalyticsOptions) ProtoMessage

func (*ParamsAnalyticsOptions) ProtoMessage()

func (*ParamsAnalyticsOptions) Reset

func (m *ParamsAnalyticsOptions) Reset()

func (*ParamsAnalyticsOptions) Size

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

func (*ParamsAnalyticsOptions) String

func (this *ParamsAnalyticsOptions) String() string

func (*ParamsAnalyticsOptions) Unmarshal

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

func (*ParamsAnalyticsOptions) XXX_DiscardUnknown

func (m *ParamsAnalyticsOptions) XXX_DiscardUnknown()

func (*ParamsAnalyticsOptions) XXX_Marshal

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

func (*ParamsAnalyticsOptions) XXX_Merge

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

func (*ParamsAnalyticsOptions) XXX_Size

func (m *ParamsAnalyticsOptions) XXX_Size() int

func (*ParamsAnalyticsOptions) XXX_Unmarshal

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

type ParamsAuthOptions

type ParamsAuthOptions struct {
	// The length of time API Keys are valid in the cache.
	// Optional. Default: "30m" (30 minutes).
	ApiKeyCacheDuration *types.Duration `protobuf:"bytes,1,opt,name=api_key_cache_duration,json=apiKeyCacheDuration,proto3" json:"api_key_cache_duration,omitempty"`
	// The name of a JWT claim from which to look for an api_key.
	// Optional. Default: none.
	ApiKeyClaim string `protobuf:"bytes,2,opt,name=api_key_claim,json=apiKeyClaim,proto3" json:"api_key_claim,omitempty"`
}

Options specific to to auth handling.

func (*ParamsAuthOptions) Descriptor

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

func (*ParamsAuthOptions) Marshal

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

func (*ParamsAuthOptions) MarshalTo

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

func (*ParamsAuthOptions) ProtoMessage

func (*ParamsAuthOptions) ProtoMessage()

func (*ParamsAuthOptions) Reset

func (m *ParamsAuthOptions) Reset()

func (*ParamsAuthOptions) Size

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

func (*ParamsAuthOptions) String

func (this *ParamsAuthOptions) String() string

func (*ParamsAuthOptions) Unmarshal

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

func (*ParamsAuthOptions) XXX_DiscardUnknown

func (m *ParamsAuthOptions) XXX_DiscardUnknown()

func (*ParamsAuthOptions) XXX_Marshal

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

func (*ParamsAuthOptions) XXX_Merge

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

func (*ParamsAuthOptions) XXX_Size

func (m *ParamsAuthOptions) XXX_Size() int

func (*ParamsAuthOptions) XXX_Unmarshal

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

type ParamsProductOptions

type ParamsProductOptions struct {
	// The rate at which the list of products is refreshed from Apigee.
	// Optional. Default: "2m" (2 minutes).
	RefreshRate *types.Duration `protobuf:"bytes,1,opt,name=refresh_rate,json=refreshRate,proto3" json:"refresh_rate,omitempty"`
}

Options specific to to products handling.

func (*ParamsProductOptions) Descriptor

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

func (*ParamsProductOptions) Marshal

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

func (*ParamsProductOptions) MarshalTo

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

func (*ParamsProductOptions) ProtoMessage

func (*ParamsProductOptions) ProtoMessage()

func (*ParamsProductOptions) Reset

func (m *ParamsProductOptions) Reset()

func (*ParamsProductOptions) Size

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

func (*ParamsProductOptions) String

func (this *ParamsProductOptions) String() string

func (*ParamsProductOptions) Unmarshal

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

func (*ParamsProductOptions) XXX_DiscardUnknown

func (m *ParamsProductOptions) XXX_DiscardUnknown()

func (*ParamsProductOptions) XXX_Marshal

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

func (*ParamsProductOptions) XXX_Merge

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

func (*ParamsProductOptions) XXX_Size

func (m *ParamsProductOptions) XXX_Size() int

func (*ParamsProductOptions) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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