api

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conf *config.Config)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL