Documentation
¶
Index ¶
- type DashboardHandler
- func (d *DashboardHandler) AddAccountKey(accountEmail string, keyName string, publicKeyId string, pubKeyEncoded string) (*models.Key, error)
- func (d *DashboardHandler) GetACLMacaroon(acl string) (*macaroonv2.Macaroon, error)
- func (d *DashboardHandler) GetAccount(accountEmail string) (*responses.AccountInfo, error)
- func (d *DashboardHandler) GetSnapChannelMap(snapName string) (*generatedResponses.Root, error)
- func (d *DashboardHandler) GetUploadStatus(upDownId string) (*responses.Status, error)
- func (d *DashboardHandler) PushSnap(snapName string, upDownId string, fileSize uint, channels []string) (*store.Upload, error)
- func (d *DashboardHandler) RegisterSnapName(accountEmail string, isDryRun bool, snapName string) (*responses.RegisterSnap, error)
- func (d *DashboardHandler) ReleaseSnap(name string, revision uint, channels []string) (bool, error)
- func (d *DashboardHandler) VerifyACL(verify *requests.Verify) (*responses.Verify, error)
- type IDashboardHandler
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardHandler ¶
type DashboardHandler struct {
// contains filtered or unexported fields
}
func NewDashboardHandler ¶
func NewDashboardHandler(accts repositories.IAccountRepository, snaps repositories.ISnapsRepository) *DashboardHandler
func (*DashboardHandler) AddAccountKey ¶
func (*DashboardHandler) GetACLMacaroon ¶
func (d *DashboardHandler) GetACLMacaroon(acl string) (*macaroonv2.Macaroon, error)
func (*DashboardHandler) GetAccount ¶
func (d *DashboardHandler) GetAccount(accountEmail string) (*responses.AccountInfo, error)
func (*DashboardHandler) GetSnapChannelMap ¶
func (d *DashboardHandler) GetSnapChannelMap(snapName string) (*generatedResponses.Root, error)
func (*DashboardHandler) GetUploadStatus ¶
func (d *DashboardHandler) GetUploadStatus(upDownId string) (*responses.Status, error)
func (*DashboardHandler) RegisterSnapName ¶
func (d *DashboardHandler) RegisterSnapName(accountEmail string, isDryRun bool, snapName string) (*responses.RegisterSnap, error)
func (*DashboardHandler) ReleaseSnap ¶
type IDashboardHandler ¶
type IDashboardHandler interface { VerifyACL(verify *requests.Verify) (*responses.Verify, error) GetAccount(accountEmail string) (*responses.AccountInfo, error) RegisterSnapName(accountEmail string, dryRun bool, snapName string) (*responses.RegisterSnap, error) AddAccountKey(accountEmail string, keyName string, publicKeyId string, pubKeyEncoded string) (*models.Key, error) GetACLMacaroon(acl string) (*macaroonv2.Macaroon, error) GetUploadStatus(upDownId string) (*responses.Status, error) PushSnap(snapName string, upDownId string, fileSize uint, channels []string) (*store.Upload, error) ReleaseSnap(name string, revision uint, channels []string) (bool, error) GetSnapChannelMap(snapName string) (*generatedResponses.Root, error) }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetupEndpoints ¶
func (s *Server) SetupEndpoints(checkForAuthorizedUser gin.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.