Documentation
¶
Index ¶
- type CatalogModel
- type Data
- type Snapshot
- func (s *Snapshot) AuthByAPIKeyHash(keyHash string) (*authdomain.Auth, bool)
- func (s *Snapshot) AuthByID(id ids.AuthID) (*authdomain.Auth, bool)
- func (s *Snapshot) AuthsByIDs(gatewayID ids.GatewayID, authIDs []ids.AuthID) []*authdomain.Auth
- func (s *Snapshot) AuthsEnabledByGatewayAndType(gatewayID ids.GatewayID, authType authdomain.Type) []*authdomain.Auth
- func (s *Snapshot) AuthsEnabledByTypes(types []authdomain.Type) []*authdomain.Auth
- func (s *Snapshot) CatalogModelByProviderSlug(providerCode, slug string) (*catalogdomain.Model, bool)
- func (s *Snapshot) CatalogModelsByProviderCode(providerCode string) []*catalogdomain.Model
- func (s *Snapshot) ConsumerActiveBySlug(slug string) (*consumerdomain.Consumer, bool)
- func (s *Snapshot) ConsumerByID(id ids.ConsumerID) (*consumerdomain.Consumer, bool)
- func (s *Snapshot) ConsumersByAuthID(authID ids.AuthID) []*consumerdomain.Consumer
- func (s *Snapshot) ConsumersByGateway(gatewayID ids.GatewayID) []*consumerdomain.Consumer
- func (s *Snapshot) Data() Data
- func (s *Snapshot) GatewayByDomain(host string) (*gatewaydomain.Gateway, bool)
- func (s *Snapshot) GatewayByID(id ids.GatewayID) (*gatewaydomain.Gateway, bool)
- func (s *Snapshot) GatewayBySlug(slug string) (*gatewaydomain.Gateway, bool)
- func (s *Snapshot) PoliciesByGateway(gatewayID ids.GatewayID) []*policydomain.Policy
- func (s *Snapshot) PoliciesByIDs(gatewayID ids.GatewayID, policyIDs []ids.PolicyID) []*policydomain.Policy
- func (s *Snapshot) PolicyByID(id ids.PolicyID) (*policydomain.Policy, bool)
- func (s *Snapshot) Providers() []*catalogdomain.Provider
- func (s *Snapshot) RegistriesByIDs(gatewayID ids.GatewayID, registryIDs []ids.RegistryID) []*registrydomain.Registry
- func (s *Snapshot) RegistryByID(id ids.RegistryID) (*registrydomain.Registry, bool)
- func (s *Snapshot) RoleByID(id ids.RoleID) (*roledomain.Role, bool)
- func (s *Snapshot) RolesByGateway(gatewayID ids.GatewayID) []*roledomain.Role
- func (s *Snapshot) RolesByIDs(gatewayID ids.GatewayID, roleIDs []ids.RoleID) []*roledomain.Role
- func (s *Snapshot) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogModel ¶
type CatalogModel struct {
ProviderCode string
Model catalogdomain.Model
}
type Data ¶
type Data struct {
Version string
Gateways []gatewaydomain.Gateway
Consumers []consumerdomain.Consumer
Registries []registrydomain.Registry
Policies []policydomain.Policy
Auths []authdomain.Auth
Roles []roledomain.Role
Providers []catalogdomain.Provider
CatalogModels []CatalogModel
}
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func (*Snapshot) AuthByAPIKeyHash ¶
func (s *Snapshot) AuthByAPIKeyHash(keyHash string) (*authdomain.Auth, bool)
func (*Snapshot) AuthsByIDs ¶
func (*Snapshot) AuthsEnabledByGatewayAndType ¶
func (s *Snapshot) AuthsEnabledByGatewayAndType(gatewayID ids.GatewayID, authType authdomain.Type) []*authdomain.Auth
func (*Snapshot) AuthsEnabledByTypes ¶
func (s *Snapshot) AuthsEnabledByTypes(types []authdomain.Type) []*authdomain.Auth
func (*Snapshot) CatalogModelByProviderSlug ¶
func (s *Snapshot) CatalogModelByProviderSlug(providerCode, slug string) (*catalogdomain.Model, bool)
func (*Snapshot) CatalogModelsByProviderCode ¶
func (s *Snapshot) CatalogModelsByProviderCode(providerCode string) []*catalogdomain.Model
func (*Snapshot) ConsumerActiveBySlug ¶
func (s *Snapshot) ConsumerActiveBySlug(slug string) (*consumerdomain.Consumer, bool)
func (*Snapshot) ConsumerByID ¶
func (s *Snapshot) ConsumerByID(id ids.ConsumerID) (*consumerdomain.Consumer, bool)
func (*Snapshot) ConsumersByAuthID ¶
func (s *Snapshot) ConsumersByAuthID(authID ids.AuthID) []*consumerdomain.Consumer
func (*Snapshot) ConsumersByGateway ¶
func (s *Snapshot) ConsumersByGateway(gatewayID ids.GatewayID) []*consumerdomain.Consumer
func (*Snapshot) GatewayByDomain ¶
func (s *Snapshot) GatewayByDomain(host string) (*gatewaydomain.Gateway, bool)
func (*Snapshot) GatewayByID ¶
func (*Snapshot) GatewayBySlug ¶
func (s *Snapshot) GatewayBySlug(slug string) (*gatewaydomain.Gateway, bool)
func (*Snapshot) PoliciesByGateway ¶
func (s *Snapshot) PoliciesByGateway(gatewayID ids.GatewayID) []*policydomain.Policy
func (*Snapshot) PoliciesByIDs ¶
func (*Snapshot) PolicyByID ¶
func (*Snapshot) Providers ¶
func (s *Snapshot) Providers() []*catalogdomain.Provider
func (*Snapshot) RegistriesByIDs ¶
func (s *Snapshot) RegistriesByIDs(gatewayID ids.GatewayID, registryIDs []ids.RegistryID) []*registrydomain.Registry
func (*Snapshot) RegistryByID ¶
func (s *Snapshot) RegistryByID(id ids.RegistryID) (*registrydomain.Registry, bool)
func (*Snapshot) RolesByGateway ¶
func (s *Snapshot) RolesByGateway(gatewayID ids.GatewayID) []*roledomain.Role
func (*Snapshot) RolesByIDs ¶
Click to show internal directories.
Click to hide internal directories.