Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package acl provides persistence and access to Access Control List
Index ¶
- func InsertPruningJob(ctx context.Context) error
 - func NewDAO(o dao.DAO) dao.DAO
 - type DAO
 - type MemDAO
 - func (m *MemDAO) Delete(patUuid string) error
 - func (m *MemDAO) List(byType auth.PatType, byUser string) ([]*auth.PersonalAccessToken, error)
 - func (m *MemDAO) Load(accessToken string) (*auth.PersonalAccessToken, error)
 - func (m *MemDAO) PruneExpired() (int, error)
 - func (m *MemDAO) Store(accessToken string, token *auth.PersonalAccessToken, _ bool) error
 
- type PruneTokensAction
 - func (c *PruneTokensAction) GetDescription(lang ...string) actions.ActionDescription
 - func (c *PruneTokensAction) GetName() string
 - func (c *PruneTokensAction) GetParametersForm() *forms.Form
 - func (c *PruneTokensAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error
 - func (c *PruneTokensAction) Run(ctx context.Context, channels *actions.RunnableChannels, ...) (jobs.ActionMessage, error)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DAO ¶
type DAO interface {
	dao.DAO
	Load(accessToken string) (*auth.PersonalAccessToken, error)
	Store(accessToken string, token *auth.PersonalAccessToken, update bool) error
	Delete(patUuid string) error
	List(byType auth.PatType, byUser string) ([]*auth.PersonalAccessToken, error)
	PruneExpired() (int, error)
}
    DAO interface
type PruneTokensAction ¶
type PruneTokensAction struct{}
    func (*PruneTokensAction) GetDescription ¶
func (c *PruneTokensAction) GetDescription(lang ...string) actions.ActionDescription
func (*PruneTokensAction) GetParametersForm ¶
func (c *PruneTokensAction) GetParametersForm() *forms.Form
func (*PruneTokensAction) Init ¶
Pass parameters
func (*PruneTokensAction) Run ¶
func (c *PruneTokensAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
Run the actual action code
      
      Source Files
      ¶
    
- action.go
 - dao.go
 - mem.go
 - sql.go
 
      
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package grpc spins an OpenID Connect Server using the coreos/dex implementation 
         | 
      Package grpc spins an OpenID Connect Server using the coreos/dex implementation | 
| 
       Package lang provides auth-related i18n strings 
         | 
      Package lang provides auth-related i18n strings | 
| 
       Package rest provides access to the TokenServiceApi 
         | 
      Package rest provides access to the TokenServiceApi | 
| 
       Package grpc spins an OpenID Connect Server using the coreos/dex implementation 
         | 
      Package grpc spins an OpenID Connect Server using the coreos/dex implementation | 
 Click to show internal directories. 
   Click to hide internal directories.