Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Config) CloneVT() *Config
- func (this *Config) EqualMessageVT(thatMsg any) bool
- func (this *Config) EqualVT(that *Config) bool
- func (c *Config) EqualsConfig(other config.Config) bool
- func (c *Config) GetConfigID() string
- func (x *Config) GetDomainInfo() *domain.DomainInfo
- func (x *Config) GetEntities() []*identity.Entity
- func (x *Config) GetResolveSelectIdentityDomain() bool
- func (x *Config) GetSilentNotFound() bool
- func (x *Config) MarshalJSON() ([]byte, error)
- func (x *Config) MarshalProtoJSON(s *json.MarshalState)
- func (x *Config) MarshalProtoText() string
- func (m *Config) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Config) MarshalToVT(dAtA []byte) (int, error)
- func (m *Config) MarshalVT() (dAtA []byte, err error)
- func (*Config) ProtoMessage()
- func (x *Config) Reset()
- func (m *Config) SizeVT() (n int)
- func (x *Config) String() string
- func (x *Config) UnmarshalJSON(b []byte) error
- func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Config) UnmarshalVT(dAtA []byte) error
- func (c *Config) Validate() error
- type Controller
- type Domain
- type Factory
- func (t *Factory) Construct(ctx context.Context, conf config.Config, opts controller.ConstructOpts) (controller.Controller, error)
- func (t *Factory) ConstructConfig() config.Config
- func (t *Factory) GetConfigID() string
- func (t *Factory) GetControllerID() string
- func (t *Factory) GetVersion() controller.Version
Constants ¶
const ConfigID = ControllerID
ConfigID is the string used to identify this config object.
const ControllerID = "identity/domain/static"
ControllerID is the ID of the controller.
Variables ¶
var Version = controller.MustParseVersion("0.0.1")
Version is the version of the controller implementation.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// DomainInfo is the identity domain information object.
DomainInfo *domain.DomainInfo `protobuf:"bytes,1,opt,name=domain_info,json=domainInfo,proto3" json:"domainInfo,omitempty"`
// Entities is the set of entities to make available on the domain.
Entities []*identity.Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
// SilentNotFound indicates not found will not satistfy the lookup.
SilentNotFound bool `protobuf:"varint,3,opt,name=silent_not_found,json=silentNotFound,proto3" json:"silentNotFound,omitempty"`
// ResolveSelectIdentityDomain indicates this domain should resolve any
// SelectIdentityDomain directive with its own domain info.
ResolveSelectIdentityDomain bool `` /* 144-byte string literal not displayed */
// contains filtered or unexported fields
}
Config is the static identity provider config.
Serves LookupEntity directives for a list of domains.
func (*Config) CloneMessageVT ¶
func (m *Config) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Config) EqualMessageVT ¶
func (*Config) EqualsConfig ¶
EqualsConfig checks if the other config is equal.
func (*Config) GetConfigID ¶
GetConfigID returns the unique string for this configuration type. This string is stored with the encoded config.
func (*Config) GetDomainInfo ¶
func (x *Config) GetDomainInfo() *domain.DomainInfo
func (*Config) GetEntities ¶
func (*Config) GetResolveSelectIdentityDomain ¶
func (*Config) GetSilentNotFound ¶
func (*Config) MarshalJSON ¶
MarshalJSON marshals the Config to JSON.
func (*Config) MarshalProtoJSON ¶
func (x *Config) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Config message to JSON.
func (*Config) MarshalProtoText ¶
func (*Config) MarshalToSizedBufferVT ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Config from JSON.
func (*Config) UnmarshalProtoJSON ¶
func (x *Config) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Config message from JSON.
func (*Config) UnmarshalVT ¶
type Controller ¶
type Controller = identity_domain_controller.Controller
Controller is the controller type.
func NewController ¶
NewController constructs a new controller.
type Domain ¶
type Domain struct {
// contains filtered or unexported fields
}
Domain implements the static identity domain. Serves identity lookup requests with a static list.
func (*Domain) GetDomainInfo ¶
func (d *Domain) GetDomainInfo() *identity_domain.DomainInfo
GetDomainInfo returns the domain info object.
func (*Domain) IdentityLookupEntity ¶
func (d *Domain) IdentityLookupEntity( ctx context.Context, dir identity.IdentityLookupEntity, ) (identity.IdentityLookupEntityValue, error)
IdentityLookupEntity implements the IdentityLookupEntity directive. Return nil, nil if not found.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory constructs a auth server controller.
func NewFactory ¶
NewFactory builds a auth challenge server factory.
func (*Factory) Construct ¶
func (t *Factory) Construct( ctx context.Context, conf config.Config, opts controller.ConstructOpts, ) (controller.Controller, error)
Construct constructs the associated controller given configuration. The transport's identity (private key) comes from a GetNode lookup.
func (*Factory) ConstructConfig ¶
ConstructConfig constructs an instance of the controller configuration.
func (*Factory) GetConfigID ¶
GetConfigID returns the configuration ID for the controller.
func (*Factory) GetControllerID ¶
GetControllerID returns the unique ID for the controller.
func (*Factory) GetVersion ¶
func (t *Factory) GetVersion() controller.Version
GetVersion returns the version of this controller.