Documentation
¶
Overview ¶
+kubebuilder:object:generate=true
Index ¶
- Constants
- Variables
- type Conf
- type From
- type MeshTLS
- type MeshTLSResource
- func (t *MeshTLSResource) Deprecations() []string
- func (t *MeshTLSResource) Descriptor() model.ResourceTypeDescriptor
- func (t *MeshTLSResource) GetMeta() model.ResourceMeta
- func (t *MeshTLSResource) GetSpec() model.ResourceSpec
- func (t *MeshTLSResource) GetStatus() model.ResourceStatus
- func (t *MeshTLSResource) SetMeta(m model.ResourceMeta)
- func (t *MeshTLSResource) SetSpec(spec model.ResourceSpec) error
- func (t *MeshTLSResource) SetStatus(model.ResourceStatus) error
- func (t *MeshTLSResource) Validate() error
- type MeshTLSResourceList
- func (l *MeshTLSResourceList) AddItem(r model.Resource) error
- func (l *MeshTLSResourceList) GetItemType() model.ResourceType
- func (l *MeshTLSResourceList) GetItems() []model.Resource
- func (l *MeshTLSResourceList) GetPagination() *model.Pagination
- func (l *MeshTLSResourceList) NewItem() model.Resource
- func (l *MeshTLSResourceList) SetPagination(p model.Pagination)
- type Mode
- type Rule
Constants ¶
const (
MeshTLSType model.ResourceType = "MeshTLS"
)
Variables ¶
var MeshTLSResourceTypeDescriptor = model.ResourceTypeDescriptor{ Name: MeshTLSType, Resource: NewMeshTLSResource(), ResourceList: &MeshTLSResourceList{}, Scope: model.ScopeMesh, KDSFlags: model.GlobalToZonesFlag | model.ZoneToGlobalFlag | model.SyncedAcrossZonesFlag, WsPath: "meshtlses", KumactlArg: "meshtls", KumactlListArg: "meshtlses", AllowToInspect: true, IsPolicy: true, IsDestination: false, IsExperimental: false, SingularDisplayName: "Mesh TLS", PluralDisplayName: "Mesh TLSes", IsPluginOriginated: true, IsTargetRefBased: true, HasToTargetRef: false, HasFromTargetRef: true, HasRulesTargetRef: true, HasStatus: false, AllowedOnSystemNamespaceOnly: false, IsReferenceableInTo: false, ShortName: "mtls", IsFromAsRules: true, }
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
// Version section for providing version specification.
TlsVersion *common_tls.Version `json:"tlsVersion,omitempty"`
// TlsCiphers section for providing ciphers specification.
TlsCiphers *[]common_tls.TlsCipher `json:"tlsCiphers,omitempty"`
// Mode defines the behavior of inbound listeners with regard to traffic encryption.
Mode *Mode `json:"mode,omitempty"`
}
func (*Conf) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conf.
func (*Conf) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type From ¶
type From struct {
// TargetRef is a reference to the resource that represents a group of
// clients.
TargetRef common_api.TargetRef `json:"targetRef"`
// Default is a configuration specific to the group of clients referenced in
// 'targetRef'
Default Conf `json:"default,omitempty"`
}
func (*From) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new From.
func (*From) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*From) GetDefault ¶
func (x *From) GetDefault() interface{}
func (*From) GetTargetRef ¶
func (x *From) GetTargetRef() common_api.TargetRef
type MeshTLS ¶
type MeshTLS struct {
// TargetRef is a reference to the resource the policy takes an effect on.
// The resource could be either a real store object or virtual resource
// defined in-place.
TargetRef *common_api.TargetRef `json:"targetRef,omitempty"`
// From list makes a match between clients and corresponding configurations
From *[]From `json:"from,omitempty"`
// Rules defines inbound tls configurations. Currently limited to
// selecting all inbound traffic, as L7 matching is not yet implemented.
Rules *[]Rule `json:"rules,omitempty"`
}
MeshTLS +kuma:policy:singular_display_name=Mesh TLS +kuma:policy:is_from_as_rules=true
func (*MeshTLS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeshTLS.
func (*MeshTLS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MeshTLS) GetFromList ¶
func (x *MeshTLS) GetFromList() []core_model.PolicyItem
func (*MeshTLS) GetTargetRef ¶
func (x *MeshTLS) GetTargetRef() common_api.TargetRef
type MeshTLSResource ¶
type MeshTLSResource struct {
Meta model.ResourceMeta
Spec *MeshTLS
}
func NewMeshTLSResource ¶
func NewMeshTLSResource() *MeshTLSResource
func (*MeshTLSResource) Deprecations ¶
func (t *MeshTLSResource) Deprecations() []string
func (*MeshTLSResource) Descriptor ¶
func (t *MeshTLSResource) Descriptor() model.ResourceTypeDescriptor
func (*MeshTLSResource) GetMeta ¶
func (t *MeshTLSResource) GetMeta() model.ResourceMeta
func (*MeshTLSResource) GetSpec ¶
func (t *MeshTLSResource) GetSpec() model.ResourceSpec
func (*MeshTLSResource) GetStatus ¶
func (t *MeshTLSResource) GetStatus() model.ResourceStatus
func (*MeshTLSResource) SetMeta ¶
func (t *MeshTLSResource) SetMeta(m model.ResourceMeta)
func (*MeshTLSResource) SetSpec ¶
func (t *MeshTLSResource) SetSpec(spec model.ResourceSpec) error
func (*MeshTLSResource) SetStatus ¶
func (t *MeshTLSResource) SetStatus(model.ResourceStatus) error
func (*MeshTLSResource) Validate ¶
func (t *MeshTLSResource) Validate() error
type MeshTLSResourceList ¶
type MeshTLSResourceList struct {
Items []*MeshTLSResource
Pagination model.Pagination
}
func (*MeshTLSResourceList) GetItemType ¶
func (l *MeshTLSResourceList) GetItemType() model.ResourceType
func (*MeshTLSResourceList) GetItems ¶
func (l *MeshTLSResourceList) GetItems() []model.Resource
func (*MeshTLSResourceList) GetPagination ¶
func (l *MeshTLSResourceList) GetPagination() *model.Pagination
func (*MeshTLSResourceList) NewItem ¶
func (l *MeshTLSResourceList) NewItem() model.Resource
func (*MeshTLSResourceList) SetPagination ¶
func (l *MeshTLSResourceList) SetPagination(p model.Pagination)
type Rule ¶
type Rule struct {
// Default contains configuration of the inbound tls
Default Conf `json:"default,omitempty"`
}
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rule) GetDefault ¶
func (x *Rule) GetDefault() interface{}