Version: v0.7.1 Latest Latest

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 16 Imported by: 0




This section is empty.


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


This section is empty.


type Squash

type Squash struct {
	// The name of the cluster that hosts the Squash server.
	Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// When the filter requests the Squash server to create a DebugAttachment, it will use this
	// structure as template for the body of the request. It can contain reference to environment
	// variables in the form of '{{ ENV_VAR_NAME }}'. These can be used to provide the Squash server
	// with more information to find the process to attach the debugger to. For example, in a
	// Istio/k8s environment, this will contain information on the pod:
	// .. code-block:: json
	//  {
	//    "spec": {
	//      "attachment": {
	//        "pod": "{{ POD_NAME }}",
	//        "namespace": "{{ POD_NAMESPACE }}"
	//      },
	//      "match_request": true
	//    }
	//  }
	// (where POD_NAME, POD_NAMESPACE are configured in the pod via the Downward API)
	AttachmentTemplate *types.Struct `protobuf:"bytes,2,opt,name=attachment_template,json=attachmentTemplate,proto3" json:"attachment_template,omitempty"`
	// The timeout for individual requests sent to the Squash cluster. Defaults to 1 second.
	RequestTimeout *time.Duration `protobuf:"bytes,3,opt,name=request_timeout,json=requestTimeout,proto3,stdduration" json:"request_timeout,omitempty"`
	// The total timeout Squash will delay a request and wait for it to be attached. Defaults to 60
	// seconds.
	AttachmentTimeout *time.Duration `protobuf:"bytes,4,opt,name=attachment_timeout,json=attachmentTimeout,proto3,stdduration" json:"attachment_timeout,omitempty"`
	// Amount of time to poll for the status of the attachment object in the Squash server
	// (to check if has been attached). Defaults to 1 second.
	AttachmentPollPeriod *time.Duration `` /* 135-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`

[#proto-status: experimental]

func (*Squash) Descriptor

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

func (*Squash) GetAttachmentPollPeriod

func (m *Squash) GetAttachmentPollPeriod() *time.Duration

func (*Squash) GetAttachmentTemplate

func (m *Squash) GetAttachmentTemplate() *types.Struct

func (*Squash) GetAttachmentTimeout

func (m *Squash) GetAttachmentTimeout() *time.Duration

func (*Squash) GetCluster

func (m *Squash) GetCluster() string

func (*Squash) GetRequestTimeout

func (m *Squash) GetRequestTimeout() *time.Duration

func (*Squash) Marshal

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

func (*Squash) MarshalTo

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

func (*Squash) ProtoMessage

func (*Squash) ProtoMessage()

func (*Squash) Reset

func (m *Squash) Reset()

func (*Squash) Size

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

func (*Squash) String

func (m *Squash) String() string

func (*Squash) Unmarshal

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

func (*Squash) Validate

func (m *Squash) Validate() error

Validate checks the field values on Squash with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Squash) XXX_DiscardUnknown

func (m *Squash) XXX_DiscardUnknown()

func (*Squash) XXX_Marshal

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

func (*Squash) XXX_Merge

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

func (*Squash) XXX_Size

func (m *Squash) XXX_Size() int

func (*Squash) XXX_Unmarshal

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

type SquashValidationError

type SquashValidationError struct {
	// contains filtered or unexported fields

SquashValidationError is the validation error returned by Squash.Validate if the designated constraints aren't met.

func (SquashValidationError) Cause

func (e SquashValidationError) Cause() error

Cause function returns cause value.

func (SquashValidationError) Error

func (e SquashValidationError) Error() string

Error satisfies the builtin error interface

func (SquashValidationError) ErrorName added in v0.7.0

func (e SquashValidationError) ErrorName() string

ErrorName returns error name.

func (SquashValidationError) Field

func (e SquashValidationError) Field() string

Field function returns field value.

func (SquashValidationError) Key

func (e SquashValidationError) Key() bool

Key function returns key value.

func (SquashValidationError) Reason

func (e SquashValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL