Documentation ¶
Index ¶
- Variables
- type ACMEProviderSpec
- func (*ACMEProviderSpec) Descriptor() ([]byte, []int)
- func (m *ACMEProviderSpec) GetAuthority() string
- func (m *ACMEProviderSpec) GetEmail() string
- func (m *ACMEProviderSpec) GetPrivateKeySecret() *v11.LocalObjectReference
- func (m *ACMEProviderSpec) GetRegistration() string
- func (m *ACMEProviderSpec) Marshal() (dAtA []byte, err error)
- func (msg *ACMEProviderSpec) MarshalJSON() ([]byte, error)
- func (m *ACMEProviderSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *ACMEProviderSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ACMEProviderSpec) ProtoMessage()
- func (m *ACMEProviderSpec) Reset()
- func (m *ACMEProviderSpec) Size() (n int)
- func (m *ACMEProviderSpec) String() string
- func (m *ACMEProviderSpec) Unmarshal(dAtA []byte) error
- func (msg *ACMEProviderSpec) UnmarshalJSON(b []byte) error
- func (m *ACMEProviderSpec) XXX_DiscardUnknown()
- func (m *ACMEProviderSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ACMEProviderSpec) XXX_Merge(src proto.Message)
- func (m *ACMEProviderSpec) XXX_Size() int
- func (m *ACMEProviderSpec) XXX_Unmarshal(b []byte) error
- type Host
- func (*Host) Descriptor() ([]byte, []int)
- func (m *Host) GetSpec() *HostSpec
- func (m *Host) GetStatus() *HostStatus
- func (m *Host) Marshal() (dAtA []byte, err error)
- func (m *Host) MarshalTo(dAtA []byte) (int, error)
- func (m *Host) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Host) ProtoMessage()
- func (m *Host) Reset()
- func (m *Host) Size() (n int)
- func (m *Host) String() string
- func (m *Host) Unmarshal(dAtA []byte) error
- func (m *Host) XXX_DiscardUnknown()
- func (m *Host) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Host) XXX_Merge(src proto.Message)
- func (m *Host) XXX_Size() int
- func (m *Host) XXX_Unmarshal(b []byte) error
- type HostPhase
- type HostSpec
- func (*HostSpec) Descriptor() ([]byte, []int)
- func (m *HostSpec) GetAcmeProvider() *ACMEProviderSpec
- func (m *HostSpec) GetAmbassadorId() []string
- func (m *HostSpec) GetGeneration() int32
- func (m *HostSpec) GetHostname() string
- func (m *HostSpec) GetSelector() *v1.LabelSelector
- func (m *HostSpec) GetTlsSecret() *v11.LocalObjectReference
- func (m *HostSpec) Marshal() (dAtA []byte, err error)
- func (msg *HostSpec) MarshalJSON() ([]byte, error)
- func (m *HostSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *HostSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostSpec) ProtoMessage()
- func (m *HostSpec) Reset()
- func (m *HostSpec) Size() (n int)
- func (m *HostSpec) String() string
- func (m *HostSpec) Unmarshal(dAtA []byte) error
- func (msg *HostSpec) UnmarshalJSON(b []byte) error
- func (m *HostSpec) XXX_DiscardUnknown()
- func (m *HostSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostSpec) XXX_Merge(src proto.Message)
- func (m *HostSpec) XXX_Size() int
- func (m *HostSpec) XXX_Unmarshal(b []byte) error
- type HostState
- type HostStatus
- func (*HostStatus) Descriptor() ([]byte, []int)
- func (m *HostStatus) GetPhaseCompleted() HostPhase
- func (m *HostStatus) GetPhasePending() HostPhase
- func (m *HostStatus) GetReason() string
- func (m *HostStatus) GetState() HostState
- func (m *HostStatus) GetTlsCertificateSource() HostTLSCertificateSource
- func (m *HostStatus) Marshal() (dAtA []byte, err error)
- func (msg *HostStatus) MarshalJSON() ([]byte, error)
- func (m *HostStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *HostStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostStatus) ProtoMessage()
- func (m *HostStatus) Reset()
- func (m *HostStatus) Size() (n int)
- func (m *HostStatus) String() string
- func (m *HostStatus) Unmarshal(dAtA []byte) error
- func (msg *HostStatus) UnmarshalJSON(b []byte) error
- func (m *HostStatus) XXX_DiscardUnknown()
- func (m *HostStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostStatus) XXX_Merge(src proto.Message)
- func (m *HostStatus) XXX_Size() int
- func (m *HostStatus) XXX_Unmarshal(b []byte) error
- type HostTLSCertificateSource
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,
}
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) 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) GetStatus ¶
func (m *Host) GetStatus() *HostStatus
func (*Host) ProtoMessage ¶
func (*Host) ProtoMessage()
func (*Host) XXX_DiscardUnknown ¶
func (m *Host) XXX_DiscardUnknown()
func (*Host) XXX_Unmarshal ¶
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"` 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) GetAcmeProvider ¶
func (m *HostSpec) GetAcmeProvider() *ACMEProviderSpec
func (*HostSpec) GetAmbassadorId ¶
func (*HostSpec) GetGeneration ¶
func (*HostSpec) GetHostname ¶
func (*HostSpec) GetSelector ¶
func (m *HostSpec) GetSelector() *v1.LabelSelector
func (*HostSpec) GetTlsSecret ¶
func (m *HostSpec) GetTlsSecret() *v11.LocalObjectReference
func (*HostSpec) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*HostSpec) MarshalToSizedBuffer ¶
func (*HostSpec) ProtoMessage ¶
func (*HostSpec) ProtoMessage()
func (*HostSpec) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*HostSpec) XXX_DiscardUnknown ¶
func (m *HostSpec) XXX_DiscardUnknown()
func (*HostSpec) XXX_Marshal ¶
func (*HostSpec) XXX_Unmarshal ¶
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 ¶
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"` // reason is valid when state==Error Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HostStatus) Descriptor ¶
func (*HostStatus) Descriptor() ([]byte, []int)
func (*HostStatus) GetPhaseCompleted ¶
func (m *HostStatus) GetPhaseCompleted() HostPhase
func (*HostStatus) GetPhasePending ¶
func (m *HostStatus) GetPhasePending() HostPhase
func (*HostStatus) GetReason ¶
func (m *HostStatus) GetReason() string
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) 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
Click to show internal directories.
Click to hide internal directories.