getambassador_io_v2

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHost = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHost   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthHostNojson = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHostNojson   = fmt.Errorf("proto: integer overflow")
)
View Source
var HostPhase_name = map[int32]string{
	0: "NA",
	1: "DefaultsFilled",
	2: "ACMEUserPrivateKeyCreated",
	3: "ACMEUserRegistered",
	4: "ACMECertificateChallenge",
}
View Source
var HostPhase_value = map[string]int32{
	"NA":                        0,
	"DefaultsFilled":            1,
	"ACMEUserPrivateKeyCreated": 2,
	"ACMEUserRegistered":        3,
	"ACMECertificateChallenge":  4,
}
View Source
var HostState_name = map[int32]string{
	0: "Initial",
	1: "Pending",
	2: "Ready",
	3: "Error",
}
View Source
var HostState_value = map[string]int32{
	"Initial": 0,
	"Pending": 1,
	"Ready":   2,
	"Error":   3,
}
View Source
var HostTLSCertificateSource_name = map[int32]string{
	0: "Unknown",
	1: "None",
	2: "Other",
	3: "ACME",
}
View Source
var HostTLSCertificateSource_value = map[string]int32{
	"Unknown": 0,
	"None":    1,
	"Other":   2,
	"ACME":    3,
}
View Source
var InsecureRequestAction_name = map[int32]string{
	0: "Redirect",
	1: "Reject",
	2: "Route",
}
View Source
var InsecureRequestAction_value = map[string]int32{
	"Redirect": 0,
	"Reject":   1,
	"Route":    2,
}

Functions

This section is empty.

Types

type ACMEProviderSpec

type ACMEProviderSpec struct {
	// Specifies who to talk ACME with to get certs. Defaults to Let's
	// Encrypt; if "none", do not try to do TLS for this Host.
	Authority        string                    `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Email            string                    `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	PrivateKeySecret *v11.LocalObjectReference `protobuf:"bytes,3,opt,name=privateKeySecret,proto3" json:"privateKeySecret,omitempty"`
	// This is normally set automatically
	Registration         string   `protobuf:"bytes,4,opt,name=registration,proto3" json:"registration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ACMEProviderSpec) Descriptor

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

func (*ACMEProviderSpec) GetAuthority

func (m *ACMEProviderSpec) GetAuthority() string

func (*ACMEProviderSpec) GetEmail

func (m *ACMEProviderSpec) GetEmail() string

func (*ACMEProviderSpec) GetPrivateKeySecret

func (m *ACMEProviderSpec) GetPrivateKeySecret() *v11.LocalObjectReference

func (*ACMEProviderSpec) GetRegistration

func (m *ACMEProviderSpec) GetRegistration() string

func (*ACMEProviderSpec) Marshal

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

func (*ACMEProviderSpec) MarshalJSON

func (msg *ACMEProviderSpec) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*ACMEProviderSpec) MarshalTo

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

func (*ACMEProviderSpec) MarshalToSizedBuffer

func (m *ACMEProviderSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ACMEProviderSpec) ProtoMessage

func (*ACMEProviderSpec) ProtoMessage()

func (*ACMEProviderSpec) Reset

func (m *ACMEProviderSpec) Reset()

func (*ACMEProviderSpec) Size

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

func (*ACMEProviderSpec) String

func (m *ACMEProviderSpec) String() string

func (*ACMEProviderSpec) Unmarshal

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

func (*ACMEProviderSpec) UnmarshalJSON

func (msg *ACMEProviderSpec) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*ACMEProviderSpec) XXX_DiscardUnknown

func (m *ACMEProviderSpec) XXX_DiscardUnknown()

func (*ACMEProviderSpec) XXX_Marshal

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

func (*ACMEProviderSpec) XXX_Merge

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

func (*ACMEProviderSpec) XXX_Size

func (m *ACMEProviderSpec) XXX_Size() int

func (*ACMEProviderSpec) XXX_Unmarshal

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

type Host

type Host struct {
	*v1.TypeMeta `protobuf:"bytes,1,opt,name=type_meta,json=typeMeta,proto3,embedded=type_meta" json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*v1.ObjectMeta `protobuf:"bytes,2,opt,name=metadata,proto3,embedded=metadata" json:"metadata,omitempty"`
	// Specification of the desired behavior of the Host.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *HostSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
	// Most recently observed status of the Host.
	// This data may not be up to date.
	// Populated by AES.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status               *HostStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Host) Descriptor

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

func (*Host) GetSpec

func (m *Host) GetSpec() *HostSpec

func (*Host) GetStatus

func (m *Host) GetStatus() *HostStatus

func (*Host) Marshal

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

func (*Host) MarshalTo

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

func (*Host) MarshalToSizedBuffer

func (m *Host) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) Reset

func (m *Host) Reset()

func (*Host) Size

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

func (*Host) String

func (m *Host) String() string

func (*Host) Unmarshal

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

func (*Host) XXX_DiscardUnknown

func (m *Host) XXX_DiscardUnknown()

func (*Host) XXX_Marshal

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

func (*Host) XXX_Merge

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

func (*Host) XXX_Size

func (m *Host) XXX_Size() int

func (*Host) XXX_Unmarshal

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

type HostPhase

type HostPhase int32
const (
	HostPhase_NA                        HostPhase = 0
	HostPhase_DefaultsFilled            HostPhase = 1
	HostPhase_ACMEUserPrivateKeyCreated HostPhase = 2
	HostPhase_ACMEUserRegistered        HostPhase = 3
	HostPhase_ACMECertificateChallenge  HostPhase = 4
)

func (HostPhase) EnumDescriptor

func (HostPhase) EnumDescriptor() ([]byte, []int)

func (HostPhase) String

func (x HostPhase) String() string

type HostSpec

type HostSpec struct {
	// Common to all Ambassador objects (and optional).
	AmbassadorId []string `protobuf:"bytes,1,rep,name=ambassador_id,json=ambassadorId,proto3" json:"ambassador_id,omitempty"`
	// Common to all Ambassador objects (and optional).
	Generation int32 `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"`
	// Hostname by which the Ambassador can be reached.
	Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// Selector by which we can find further configuration. Defaults to hostname=$hostname
	Selector *v1.LabelSelector `protobuf:"bytes,4,opt,name=selector,proto3" json:"selector,omitempty"`
	// Specifies who to talk ACME with to get certs. Defaults to Let's Encrypt; if "none", do
	// not try to do TLS for this Host.
	AcmeProvider *ACMEProviderSpec `protobuf:"bytes,5,opt,name=acmeProvider,proto3" json:"acmeProvider,omitempty"`
	// Name of the Kubernetes secret into which to save generated certificates. Defaults
	// to $hostname
	TlsSecret *v11.LocalObjectReference `protobuf:"bytes,6,opt,name=tlsSecret,proto3" json:"tlsSecret,omitempty"`
	// Request policy definition.
	RequestPolicy        *RequestPolicy `protobuf:"bytes,7,opt,name=requestPolicy,proto3" json:"requestPolicy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

The Host resource will usually be a Kubernetes CRD, but it could appear in other forms. The HostSpec is the part of the Host resource that doesn't change, no matter what form it's in -- when it's a CRD, this is the part in the "spec" dictionary.

func (*HostSpec) Descriptor

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

func (*HostSpec) GetAcmeProvider

func (m *HostSpec) GetAcmeProvider() *ACMEProviderSpec

func (*HostSpec) GetAmbassadorId

func (m *HostSpec) GetAmbassadorId() []string

func (*HostSpec) GetGeneration

func (m *HostSpec) GetGeneration() int32

func (*HostSpec) GetHostname

func (m *HostSpec) GetHostname() string

func (*HostSpec) GetRequestPolicy

func (m *HostSpec) GetRequestPolicy() *RequestPolicy

func (*HostSpec) GetSelector

func (m *HostSpec) GetSelector() *v1.LabelSelector

func (*HostSpec) GetTlsSecret

func (m *HostSpec) GetTlsSecret() *v11.LocalObjectReference

func (*HostSpec) Marshal

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

func (*HostSpec) MarshalJSON

func (msg *HostSpec) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*HostSpec) MarshalTo

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

func (*HostSpec) MarshalToSizedBuffer

func (m *HostSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostSpec) ProtoMessage

func (*HostSpec) ProtoMessage()

func (*HostSpec) Reset

func (m *HostSpec) Reset()

func (*HostSpec) Size

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

func (*HostSpec) String

func (m *HostSpec) String() string

func (*HostSpec) Unmarshal

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

func (*HostSpec) UnmarshalJSON

func (msg *HostSpec) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*HostSpec) XXX_DiscardUnknown

func (m *HostSpec) XXX_DiscardUnknown()

func (*HostSpec) XXX_Marshal

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

func (*HostSpec) XXX_Merge

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

func (*HostSpec) XXX_Size

func (m *HostSpec) XXX_Size() int

func (*HostSpec) XXX_Unmarshal

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

type HostState

type HostState int32
const (
	// The default value is the "zero" value, and it would be great if
	// "Pending" could be the default value; but it's Important that the
	// "zero" value be able to be shown as empty/omitted from display,
	// and we really do want `kubectl get hosts` to say "Pending" in the
	// "STATE" column, and not leave the column empty.
	HostState_Initial HostState = 0
	HostState_Pending HostState = 1
	HostState_Ready   HostState = 2
	HostState_Error   HostState = 3
)

func (HostState) EnumDescriptor

func (HostState) EnumDescriptor() ([]byte, []int)

func (HostState) String

func (x HostState) String() string

type HostStatus

type HostStatus struct {
	TlsCertificateSource HostTLSCertificateSource `` /* 144-byte string literal not displayed */
	State                HostState                `protobuf:"varint,2,opt,name=state,proto3,enum=getambassador.io.v2.HostState" json:"state,omitempty"`
	// phaseCompleted and phasePending are valid when state==Pending or
	// state==Error.
	PhaseCompleted HostPhase `protobuf:"varint,3,opt,name=phaseCompleted,proto3,enum=getambassador.io.v2.HostPhase" json:"phaseCompleted,omitempty"`
	PhasePending   HostPhase `protobuf:"varint,4,opt,name=phasePending,proto3,enum=getambassador.io.v2.HostPhase" json:"phasePending,omitempty"`
	// errorReason, errorTimestamp, and errorBackoff are valid when state==Error.
	ErrorReason          string         `protobuf:"bytes,5,opt,name=errorReason,proto3" json:"errorReason,omitempty"`
	ErrorTimestamp       *time.Time     `protobuf:"bytes,6,opt,name=errorTimestamp,proto3,stdtime" json:"errorTimestamp,omitempty"`
	ErrorBackoff         *time.Duration `protobuf:"bytes,7,opt,name=errorBackoff,proto3,stdduration" json:"errorBackoff,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*HostStatus) Descriptor

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

func (*HostStatus) GetErrorBackoff

func (m *HostStatus) GetErrorBackoff() *time.Duration

func (*HostStatus) GetErrorReason

func (m *HostStatus) GetErrorReason() string

func (*HostStatus) GetErrorTimestamp

func (m *HostStatus) GetErrorTimestamp() *time.Time

func (*HostStatus) GetPhaseCompleted

func (m *HostStatus) GetPhaseCompleted() HostPhase

func (*HostStatus) GetPhasePending

func (m *HostStatus) GetPhasePending() HostPhase

func (*HostStatus) GetState

func (m *HostStatus) GetState() HostState

func (*HostStatus) GetTlsCertificateSource

func (m *HostStatus) GetTlsCertificateSource() HostTLSCertificateSource

func (*HostStatus) Marshal

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

func (*HostStatus) MarshalJSON

func (msg *HostStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*HostStatus) MarshalTo

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

func (*HostStatus) MarshalToSizedBuffer

func (m *HostStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostStatus) ProtoMessage

func (*HostStatus) ProtoMessage()

func (*HostStatus) Reset

func (m *HostStatus) Reset()

func (*HostStatus) Size

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

func (*HostStatus) String

func (m *HostStatus) String() string

func (*HostStatus) Unmarshal

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

func (*HostStatus) UnmarshalJSON

func (msg *HostStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*HostStatus) XXX_DiscardUnknown

func (m *HostStatus) XXX_DiscardUnknown()

func (*HostStatus) XXX_Marshal

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

func (*HostStatus) XXX_Merge

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

func (*HostStatus) XXX_Size

func (m *HostStatus) XXX_Size() int

func (*HostStatus) XXX_Unmarshal

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

type HostTLSCertificateSource

type HostTLSCertificateSource int32
const (
	HostTLSCertificateSource_Unknown HostTLSCertificateSource = 0
	HostTLSCertificateSource_None    HostTLSCertificateSource = 1
	HostTLSCertificateSource_Other   HostTLSCertificateSource = 2
	HostTLSCertificateSource_ACME    HostTLSCertificateSource = 3
)

func (HostTLSCertificateSource) EnumDescriptor

func (HostTLSCertificateSource) EnumDescriptor() ([]byte, []int)

func (HostTLSCertificateSource) String

func (x HostTLSCertificateSource) String() string

type InsecureRequestAction

type InsecureRequestAction int32
const (
	InsecureRequestAction_Redirect InsecureRequestAction = 0
	InsecureRequestAction_Reject   InsecureRequestAction = 1
	InsecureRequestAction_Route    InsecureRequestAction = 2
)

func (InsecureRequestAction) EnumDescriptor

func (InsecureRequestAction) EnumDescriptor() ([]byte, []int)

func (InsecureRequestAction) String

func (x InsecureRequestAction) String() string

type InsecureRequestPolicy

type InsecureRequestPolicy struct {
	// What action should be taken for an insecure request?
	Action InsecureRequestAction `protobuf:"varint,1,opt,name=action,proto3,enum=getambassador.io.v2.InsecureRequestAction" json:"action,omitempty"`
	// Is there an additional insecure port we should listen on?
	AdditionalPort       int32    `protobuf:"varint,2,opt,name=additionalPort,proto3" json:"additionalPort,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InsecureRequestPolicy) Descriptor

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

func (*InsecureRequestPolicy) GetAction

func (*InsecureRequestPolicy) GetAdditionalPort

func (m *InsecureRequestPolicy) GetAdditionalPort() int32

func (*InsecureRequestPolicy) Marshal

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

func (*InsecureRequestPolicy) MarshalJSON

func (msg *InsecureRequestPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*InsecureRequestPolicy) MarshalTo

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

func (*InsecureRequestPolicy) MarshalToSizedBuffer

func (m *InsecureRequestPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InsecureRequestPolicy) ProtoMessage

func (*InsecureRequestPolicy) ProtoMessage()

func (*InsecureRequestPolicy) Reset

func (m *InsecureRequestPolicy) Reset()

func (*InsecureRequestPolicy) Size

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

func (*InsecureRequestPolicy) String

func (m *InsecureRequestPolicy) String() string

func (*InsecureRequestPolicy) Unmarshal

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

func (*InsecureRequestPolicy) UnmarshalJSON

func (msg *InsecureRequestPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*InsecureRequestPolicy) XXX_DiscardUnknown

func (m *InsecureRequestPolicy) XXX_DiscardUnknown()

func (*InsecureRequestPolicy) XXX_Marshal

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

func (*InsecureRequestPolicy) XXX_Merge

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

func (*InsecureRequestPolicy) XXX_Size

func (m *InsecureRequestPolicy) XXX_Size() int

func (*InsecureRequestPolicy) XXX_Unmarshal

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

type RequestPolicy

type RequestPolicy struct {
	// How shall we handle insecure requests?
	Insecure             *InsecureRequestPolicy `protobuf:"bytes,1,opt,name=insecure,proto3" json:"insecure,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*RequestPolicy) Descriptor

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

func (*RequestPolicy) GetInsecure

func (m *RequestPolicy) GetInsecure() *InsecureRequestPolicy

func (*RequestPolicy) Marshal

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

func (*RequestPolicy) MarshalJSON

func (msg *RequestPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*RequestPolicy) MarshalTo

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

func (*RequestPolicy) MarshalToSizedBuffer

func (m *RequestPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RequestPolicy) ProtoMessage

func (*RequestPolicy) ProtoMessage()

func (*RequestPolicy) Reset

func (m *RequestPolicy) Reset()

func (*RequestPolicy) Size

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

func (*RequestPolicy) String

func (m *RequestPolicy) String() string

func (*RequestPolicy) Unmarshal

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

func (*RequestPolicy) UnmarshalJSON

func (msg *RequestPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*RequestPolicy) XXX_DiscardUnknown

func (m *RequestPolicy) XXX_DiscardUnknown()

func (*RequestPolicy) XXX_Marshal

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

func (*RequestPolicy) XXX_Merge

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

func (*RequestPolicy) XXX_Size

func (m *RequestPolicy) XXX_Size() int

func (*RequestPolicy) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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