Documentation ¶
Index ¶
- func Init(conf *config.Config)
- type AccountApi
- func (a *AccountApi) AccountGroups(ctx *gin.Context)
- func (a *AccountApi) AccountLogin(ctx *gin.Context)
- func (a *AccountApi) AccountLogout(ctx *gin.Context)
- func (account *AccountApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)
- func (a *AccountApi) CreateAccount(ctx *gin.Context)
- func (a *AccountApi) CreateGroup(ctx *gin.Context)
- func (a *AccountApi) DeleteGroup(ctx *gin.Context)
- func (a *AccountApi) GetAccount(ctx *gin.Context)
- func (a *AccountApi) GetAccountInfo(ctx *gin.Context)
- func (a *AccountApi) GetGroup(ctx *gin.Context)
- func (a *AccountApi) GrantServicePermission(ctx *gin.Context)
- func (a *AccountApi) GroupAccounts(ctx *gin.Context)
- func (a *AccountApi) JoinGroup(ctx *gin.Context)
- func (a *AccountApi) LeaveGroup(ctx *gin.Context)
- func (a *AccountApi) ListAccounts(ctx *gin.Context)
- func (a *AccountApi) ListGroups(ctx *gin.Context)
- func (a *AccountApi) RevokeServicePermission(ctx *gin.Context)
- func (a *AccountApi) UpdateGroup(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountApi ¶
type AccountApi struct { Config *config.Config Authenticator auth.Authenticator TokenStore auth.TokenStore CraneDockerClient *dockerclient.CraneDockerClient Authorization gin.HandlerFunc }
func (*AccountApi) AccountGroups ¶
func (a *AccountApi) AccountGroups(ctx *gin.Context)
func (*AccountApi) AccountLogin ¶
func (a *AccountApi) AccountLogin(ctx *gin.Context)
func (*AccountApi) AccountLogout ¶
func (a *AccountApi) AccountLogout(ctx *gin.Context)
func (*AccountApi) ApiRegister ¶
func (account *AccountApi) ApiRegister(router *gin.Engine, middlewares ...gin.HandlerFunc)
func (*AccountApi) CreateAccount ¶
func (a *AccountApi) CreateAccount(ctx *gin.Context)
func (*AccountApi) CreateGroup ¶
func (a *AccountApi) CreateGroup(ctx *gin.Context)
func (*AccountApi) DeleteGroup ¶
func (a *AccountApi) DeleteGroup(ctx *gin.Context)
func (*AccountApi) GetAccount ¶
func (a *AccountApi) GetAccount(ctx *gin.Context)
func (*AccountApi) GetAccountInfo ¶
func (a *AccountApi) GetAccountInfo(ctx *gin.Context)
func (*AccountApi) GetGroup ¶
func (a *AccountApi) GetGroup(ctx *gin.Context)
func (*AccountApi) GrantServicePermission ¶
func (a *AccountApi) GrantServicePermission(ctx *gin.Context)
func (*AccountApi) GroupAccounts ¶
func (a *AccountApi) GroupAccounts(ctx *gin.Context)
func (*AccountApi) JoinGroup ¶
func (a *AccountApi) JoinGroup(ctx *gin.Context)
func (*AccountApi) LeaveGroup ¶
func (a *AccountApi) LeaveGroup(ctx *gin.Context)
func (*AccountApi) ListAccounts ¶
func (a *AccountApi) ListAccounts(ctx *gin.Context)
func (*AccountApi) ListGroups ¶
func (a *AccountApi) ListGroups(ctx *gin.Context)
func (*AccountApi) RevokeServicePermission ¶
func (a *AccountApi) RevokeServicePermission(ctx *gin.Context)
func (*AccountApi) UpdateGroup ¶
func (a *AccountApi) UpdateGroup(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.