core

package
v0.0.0-...-a20d222 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Policy_Connection_MutualTLSMode_name = map[int32]string{
		0: "UNSET",
		1: "DISABLE",
		2: "STRICT",
	}
	Policy_Connection_MutualTLSMode_value = map[string]int32{
		"UNSET":   0,
		"DISABLE": 1,
		"STRICT":  2,
	}
)

Enum value maps for Policy_Connection_MutualTLSMode.

View Source
var File_v1_core_policy_proto protoreflect.FileDescriptor
View Source
var File_v1_core_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Policies

type Policies struct {
	Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

func (*Policies) Descriptor deprecated

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

Deprecated: Use Policies.ProtoReflect.Descriptor instead.

func (*Policies) GetPolicies

func (x *Policies) GetPolicies() []*Policy

func (*Policies) ProtoMessage

func (*Policies) ProtoMessage()

func (*Policies) ProtoReflect

func (x *Policies) ProtoReflect() protoreflect.Message

func (*Policies) Reset

func (x *Policies) Reset()

func (*Policies) String

func (x *Policies) String() string

type Policy

type Policy struct {
	Selectors   []*structpb.Struct  `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
	Certificate *Policy_Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Connection  *Policy_Connection  `protobuf:"bytes,3,opt,name=connection,proto3" json:"connection,omitempty"`
	Egress      []*Policy           `protobuf:"bytes,4,rep,name=egress,proto3" json:"egress,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetCertificate

func (x *Policy) GetCertificate() *Policy_Certificate

func (*Policy) GetConnection

func (x *Policy) GetConnection() *Policy_Connection

func (*Policy) GetEgress

func (x *Policy) GetEgress() []*Policy

func (*Policy) GetSelectors

func (x *Policy) GetSelectors() []*structpb.Struct

func (*Policy) MarshalJSON

func (r *Policy) MarshalJSON() ([]byte, error)

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

func (x *Policy) ProtoReflect() protoreflect.Message

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

func (*Policy) UnmarshalJSON

func (r *Policy) UnmarshalJSON(data []byte) error

type Policy_Certificate

type Policy_Certificate struct {
	WorkloadID string               `protobuf:"bytes,1,opt,name=workloadID,proto3" json:"workloadID,omitempty"`
	DnsNames   []string             `protobuf:"bytes,2,rep,name=dnsNames,proto3" json:"dnsNames,omitempty"`
	Ttl        *durationpb.Duration `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy_Certificate) Descriptor deprecated

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

Deprecated: Use Policy_Certificate.ProtoReflect.Descriptor instead.

func (*Policy_Certificate) GetDnsNames

func (x *Policy_Certificate) GetDnsNames() []string

func (*Policy_Certificate) GetTtl

func (x *Policy_Certificate) GetTtl() *durationpb.Duration

func (*Policy_Certificate) GetWorkloadID

func (x *Policy_Certificate) GetWorkloadID() string

func (*Policy_Certificate) MarshalJSON

func (r *Policy_Certificate) MarshalJSON() ([]byte, error)

func (*Policy_Certificate) ProtoMessage

func (*Policy_Certificate) ProtoMessage()

func (*Policy_Certificate) ProtoReflect

func (x *Policy_Certificate) ProtoReflect() protoreflect.Message

func (*Policy_Certificate) Reset

func (x *Policy_Certificate) Reset()

func (*Policy_Certificate) String

func (x *Policy_Certificate) String() string

func (*Policy_Certificate) UnmarshalJSON

func (r *Policy_Certificate) UnmarshalJSON(data []byte) error

type Policy_Connection

type Policy_Connection struct {
	Mtls             Policy_Connection_MutualTLSMode `protobuf:"varint,1,opt,name=mtls,proto3,enum=nasp.api.v1.core.Policy_Connection_MutualTLSMode" json:"mtls,omitempty"`
	Passthrough      *wrapperspb.BoolValue           `protobuf:"bytes,2,opt,name=passthrough,proto3" json:"passthrough,omitempty"`
	AllowedSPIFFEIDs []string                        `protobuf:"bytes,3,rep,name=allowedSPIFFEIDs,proto3" json:"allowedSPIFFEIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*Policy_Connection) Descriptor deprecated

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

Deprecated: Use Policy_Connection.ProtoReflect.Descriptor instead.

func (*Policy_Connection) GetAllowedSPIFFEIDs

func (x *Policy_Connection) GetAllowedSPIFFEIDs() []string

func (*Policy_Connection) GetMtls

func (*Policy_Connection) GetPassthrough

func (x *Policy_Connection) GetPassthrough() *wrapperspb.BoolValue

func (*Policy_Connection) MarshalJSON

func (r *Policy_Connection) MarshalJSON() ([]byte, error)

func (*Policy_Connection) ProtoMessage

func (*Policy_Connection) ProtoMessage()

func (*Policy_Connection) ProtoReflect

func (x *Policy_Connection) ProtoReflect() protoreflect.Message

func (*Policy_Connection) Reset

func (x *Policy_Connection) Reset()

func (*Policy_Connection) String

func (x *Policy_Connection) String() string

func (*Policy_Connection) UnmarshalJSON

func (r *Policy_Connection) UnmarshalJSON(data []byte) error

type Policy_Connection_MutualTLSMode

type Policy_Connection_MutualTLSMode int32
const (
	Policy_Connection_UNSET   Policy_Connection_MutualTLSMode = 0
	Policy_Connection_DISABLE Policy_Connection_MutualTLSMode = 1
	Policy_Connection_STRICT  Policy_Connection_MutualTLSMode = 2
)

func (Policy_Connection_MutualTLSMode) Descriptor

func (Policy_Connection_MutualTLSMode) Enum

func (Policy_Connection_MutualTLSMode) EnumDescriptor deprecated

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

Deprecated: Use Policy_Connection_MutualTLSMode.Descriptor instead.

func (Policy_Connection_MutualTLSMode) Number

func (Policy_Connection_MutualTLSMode) String

func (Policy_Connection_MutualTLSMode) Type

type Service

type Service struct {
	Addresses []*Service_Address `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	Labels    map[string]string  `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAddresses

func (x *Service) GetAddresses() []*Service_Address

func (*Service) GetLabels

func (x *Service) GetLabels() map[string]string

func (*Service) MarshalJSON

func (r *Service) MarshalJSON() ([]byte, error)

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

func (*Service) UnmarshalJSON

func (r *Service) UnmarshalJSON(data []byte) error

type Service_Address

type Service_Address struct {
	Address string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Port    int32    `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Tags    []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Service_Address) Descriptor deprecated

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

Deprecated: Use Service_Address.ProtoReflect.Descriptor instead.

func (*Service_Address) GetAddress

func (x *Service_Address) GetAddress() string

func (*Service_Address) GetPort

func (x *Service_Address) GetPort() int32

func (*Service_Address) GetTags

func (x *Service_Address) GetTags() []string

func (*Service_Address) MarshalJSON

func (r *Service_Address) MarshalJSON() ([]byte, error)

func (*Service_Address) ProtoMessage

func (*Service_Address) ProtoMessage()

func (*Service_Address) ProtoReflect

func (x *Service_Address) ProtoReflect() protoreflect.Message

func (*Service_Address) Reset

func (x *Service_Address) Reset()

func (*Service_Address) String

func (x *Service_Address) String() string

func (*Service_Address) UnmarshalJSON

func (r *Service_Address) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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