Documentation ¶
Index ¶
- type AuthInter
- type AuthInterPoliciesInter
- type AuthInterResourcesInter
- type AuthInterSessionsInter
- type PoliciesInter
- func (i *PoliciesInter) Create(policy *models.Policy) (*models.Policy, error)
- func (i *PoliciesInter) DeleteByName(name string) (*models.Policy, error)
- func (i *PoliciesInter) DeleteCascade(resource *models.Resource) error
- func (i *PoliciesInter) Find() ([]models.Policy, error)
- func (i *PoliciesInter) FindByName(name string) (*models.Policy, error)
- func (i *PoliciesInter) UpdateByName(name string, policy *models.Policy) (*models.Policy, error)
- type PoliciesInterPoliciesRepo
- type PoliciesInterPoliciesValidator
- type PoliciesInterSessionsInter
- type ResourcesInter
- func (i *ResourcesInter) Create(resource *models.Resource) (*models.Resource, error)
- func (i *ResourcesInter) DeleteByHostname(hostname string) (*models.Resource, error)
- func (i *ResourcesInter) Find() ([]models.Resource, error)
- func (i *ResourcesInter) FindByHostname(hostname string) (*models.Resource, error)
- func (i *ResourcesInter) UpdateByHostname(hostname string, resource *models.Resource) (*models.Resource, error)
- type ResourcesInterPoliciesInter
- type ResourcesInterResourcesRepo
- type SessionOptionsGetter
- type SessionsInter
- func (i *SessionsInter) Create(session *models.Session) (*models.Session, error)
- func (i *SessionsInter) DeleteByOwnerTokens(ownerTokens []string) ([]models.Session, error)
- func (i *SessionsInter) DeleteByToken(token string) (*models.Session, error)
- func (i *SessionsInter) DeleteCascade(policy *models.Policy) error
- func (i *SessionsInter) Find() ([]models.Session, error)
- func (i *SessionsInter) FindByToken(token string) (*models.Session, error)
- type SessionsInterSessionsRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInter ¶
type AuthInter struct {
// contains filtered or unexported fields
}
func NewAuthInter ¶
func NewAuthInter( policiesInter AuthInterPoliciesInter, resourcesInter AuthInterResourcesInter, sessionsInter AuthInterSessionsInter, ) *AuthInter
func (*AuthInter) AuthorizeToken ¶
type AuthInterPoliciesInter ¶
type AuthInterResourcesInter ¶
type AuthInterSessionsInter ¶
type PoliciesInter ¶
type PoliciesInter struct {
// contains filtered or unexported fields
}
func NewPoliciesInter ¶
func NewPoliciesInter( r PoliciesInterPoliciesRepo, si PoliciesInterSessionsInter, v PoliciesInterPoliciesValidator, ) *PoliciesInter
func (*PoliciesInter) DeleteByName ¶
func (i *PoliciesInter) DeleteByName(name string) (*models.Policy, error)
func (*PoliciesInter) DeleteCascade ¶
func (i *PoliciesInter) DeleteCascade(resource *models.Resource) error
func (*PoliciesInter) FindByName ¶
func (i *PoliciesInter) FindByName(name string) (*models.Policy, error)
func (*PoliciesInter) UpdateByName ¶
type ResourcesInter ¶
type ResourcesInter struct {
// contains filtered or unexported fields
}
func NewResourcesInter ¶
func NewResourcesInter(r ResourcesInterResourcesRepo, pi ResourcesInterPoliciesInter) *ResourcesInter
func (*ResourcesInter) DeleteByHostname ¶
func (i *ResourcesInter) DeleteByHostname(hostname string) (*models.Resource, error)
func (*ResourcesInter) FindByHostname ¶
func (i *ResourcesInter) FindByHostname(hostname string) (*models.Resource, error)
func (*ResourcesInter) UpdateByHostname ¶
type SessionOptionsGetter ¶
type SessionsInter ¶
type SessionsInter struct {
// contains filtered or unexported fields
}
func NewSessionsInter ¶
func NewSessionsInter(r SessionsInterSessionsRepo, g SessionOptionsGetter) *SessionsInter
func (*SessionsInter) DeleteByOwnerTokens ¶
func (i *SessionsInter) DeleteByOwnerTokens(ownerTokens []string) ([]models.Session, error)
func (*SessionsInter) DeleteByToken ¶
func (i *SessionsInter) DeleteByToken(token string) (*models.Session, error)
func (*SessionsInter) DeleteCascade ¶
func (i *SessionsInter) DeleteCascade(policy *models.Policy) error
func (*SessionsInter) FindByToken ¶
func (i *SessionsInter) FindByToken(token string) (*models.Session, error)
Click to show internal directories.
Click to hide internal directories.