Back to godoc.org

Package api

v0.5.0
Latest Go to latest

The latest major version is .

Published: Feb 18, 2020 | License: Apache-2.0 | Module: agola.io/agola

Index

Constants

const (
	DefaultOrgsLimit = 10
	MaxOrgsLimit     = 20
)
const (
	DefaultProjectsLimit = 10
	MaxProjectsLimit     = 20
)
const (
	DefaultRemoteSourcesLimit = 10
	MaxRemoteSourcesLimit     = 20
)
const (
	DefaultUsersLimit = 10
	MaxUsersLimit     = 20
)

func GetConfigTypeRef

func GetConfigTypeRef(r *http.Request) (types.ConfigType, string, error)

type AddOrgMemberHandler

type AddOrgMemberHandler struct {
	// contains filtered or unexported fields
}

func NewAddOrgMemberHandler

func NewAddOrgMemberHandler(logger *zap.Logger, ah *action.ActionHandler) *AddOrgMemberHandler

func (*AddOrgMemberHandler) ServeHTTP

func (h *AddOrgMemberHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateOrgHandler

type CreateOrgHandler struct {
	// contains filtered or unexported fields
}

func NewCreateOrgHandler

func NewCreateOrgHandler(logger *zap.Logger, ah *action.ActionHandler) *CreateOrgHandler

func (*CreateOrgHandler) ServeHTTP

func (h *CreateOrgHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateProjectGroupHandler

type CreateProjectGroupHandler struct {
	// contains filtered or unexported fields
}

func NewCreateProjectGroupHandler

func NewCreateProjectGroupHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *CreateProjectGroupHandler

func (*CreateProjectGroupHandler) ServeHTTP

func (h *CreateProjectGroupHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateProjectHandler

type CreateProjectHandler struct {
	// contains filtered or unexported fields
}

func NewCreateProjectHandler

func NewCreateProjectHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *CreateProjectHandler

func (*CreateProjectHandler) ServeHTTP

func (h *CreateProjectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateRemoteSourceHandler

type CreateRemoteSourceHandler struct {
	// contains filtered or unexported fields
}

func NewCreateRemoteSourceHandler

func NewCreateRemoteSourceHandler(logger *zap.Logger, ah *action.ActionHandler) *CreateRemoteSourceHandler

func (*CreateRemoteSourceHandler) ServeHTTP

func (h *CreateRemoteSourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateSecretHandler

type CreateSecretHandler struct {
	// contains filtered or unexported fields
}

func NewCreateSecretHandler

func NewCreateSecretHandler(logger *zap.Logger, ah *action.ActionHandler) *CreateSecretHandler

func (*CreateSecretHandler) ServeHTTP

func (h *CreateSecretHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateUserHandler

type CreateUserHandler struct {
	// contains filtered or unexported fields
}

func NewCreateUserHandler

func NewCreateUserHandler(logger *zap.Logger, ah *action.ActionHandler) *CreateUserHandler

func (*CreateUserHandler) ServeHTTP

func (h *CreateUserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateUserLAHandler

type CreateUserLAHandler struct {
	// contains filtered or unexported fields
}

func NewCreateUserLAHandler

func NewCreateUserLAHandler(logger *zap.Logger, ah *action.ActionHandler) *CreateUserLAHandler

func (*CreateUserLAHandler) ServeHTTP

func (h *CreateUserLAHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateUserTokenHandler

type CreateUserTokenHandler struct {
	// contains filtered or unexported fields
}

func NewCreateUserTokenHandler

func NewCreateUserTokenHandler(logger *zap.Logger, ah *action.ActionHandler) *CreateUserTokenHandler

func (*CreateUserTokenHandler) ServeHTTP

func (h *CreateUserTokenHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateVariableHandler

type CreateVariableHandler struct {
	// contains filtered or unexported fields
}

func NewCreateVariableHandler

func NewCreateVariableHandler(logger *zap.Logger, ah *action.ActionHandler) *CreateVariableHandler

func (*CreateVariableHandler) ServeHTTP

func (h *CreateVariableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteOrgHandler

type DeleteOrgHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteOrgHandler

func NewDeleteOrgHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteOrgHandler

func (*DeleteOrgHandler) ServeHTTP

func (h *DeleteOrgHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteProjectGroupHandler

type DeleteProjectGroupHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteProjectGroupHandler

func NewDeleteProjectGroupHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteProjectGroupHandler

func (*DeleteProjectGroupHandler) ServeHTTP

func (h *DeleteProjectGroupHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteProjectHandler

type DeleteProjectHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteProjectHandler

func NewDeleteProjectHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteProjectHandler

func (*DeleteProjectHandler) ServeHTTP

func (h *DeleteProjectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteRemoteSourceHandler

type DeleteRemoteSourceHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteRemoteSourceHandler

func NewDeleteRemoteSourceHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteRemoteSourceHandler

func (*DeleteRemoteSourceHandler) ServeHTTP

func (h *DeleteRemoteSourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteSecretHandler

type DeleteSecretHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteSecretHandler

func NewDeleteSecretHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteSecretHandler

func (*DeleteSecretHandler) ServeHTTP

func (h *DeleteSecretHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteUserHandler

type DeleteUserHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteUserHandler

func NewDeleteUserHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteUserHandler

func (*DeleteUserHandler) ServeHTTP

func (h *DeleteUserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteUserLAHandler

type DeleteUserLAHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteUserLAHandler

func NewDeleteUserLAHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteUserLAHandler

func (*DeleteUserLAHandler) ServeHTTP

func (h *DeleteUserLAHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteUserTokenHandler

type DeleteUserTokenHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteUserTokenHandler

func NewDeleteUserTokenHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteUserTokenHandler

func (*DeleteUserTokenHandler) ServeHTTP

func (h *DeleteUserTokenHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteVariableHandler

type DeleteVariableHandler struct {
	// contains filtered or unexported fields
}

func NewDeleteVariableHandler

func NewDeleteVariableHandler(logger *zap.Logger, ah *action.ActionHandler) *DeleteVariableHandler

func (*DeleteVariableHandler) ServeHTTP

func (h *DeleteVariableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

func ErrorResponseFromError

func ErrorResponseFromError(err error) *ErrorResponse

type ExportHandler

type ExportHandler struct {
	// contains filtered or unexported fields
}

func NewExportHandler

func NewExportHandler(logger *zap.Logger, ah *action.ActionHandler) *ExportHandler

func (*ExportHandler) ServeHTTP

func (h *ExportHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ImportHandler

type ImportHandler struct {
	// contains filtered or unexported fields
}

func NewImportHandler

func NewImportHandler(logger *zap.Logger, ah *action.ActionHandler) *ImportHandler

func (*ImportHandler) ServeHTTP

func (h *ImportHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MaintenanceModeHandler

type MaintenanceModeHandler struct {
	// contains filtered or unexported fields
}

func NewMaintenanceModeHandler

func NewMaintenanceModeHandler(logger *zap.Logger, ah *action.ActionHandler, e *etcd.Store) *MaintenanceModeHandler

func (*MaintenanceModeHandler) ServeHTTP

func (h *MaintenanceModeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OrgHandler

type OrgHandler struct {
	// contains filtered or unexported fields
}

func NewOrgHandler

func NewOrgHandler(logger *zap.Logger, readDB *readdb.ReadDB) *OrgHandler

func (*OrgHandler) ServeHTTP

func (h *OrgHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OrgMembersHandler

type OrgMembersHandler struct {
	// contains filtered or unexported fields
}

func NewOrgMembersHandler

func NewOrgMembersHandler(logger *zap.Logger, ah *action.ActionHandler) *OrgMembersHandler

func (*OrgMembersHandler) ServeHTTP

func (h *OrgMembersHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OrgsHandler

type OrgsHandler struct {
	// contains filtered or unexported fields
}

func NewOrgsHandler

func NewOrgsHandler(logger *zap.Logger, readDB *readdb.ReadDB) *OrgsHandler

func (*OrgsHandler) ServeHTTP

func (h *OrgsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ProjectGroupHandler

type ProjectGroupHandler struct {
	// contains filtered or unexported fields
}

func NewProjectGroupHandler

func NewProjectGroupHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *ProjectGroupHandler

func (*ProjectGroupHandler) ServeHTTP

func (h *ProjectGroupHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ProjectGroupProjectsHandler

type ProjectGroupProjectsHandler struct {
	// contains filtered or unexported fields
}

func NewProjectGroupProjectsHandler

func NewProjectGroupProjectsHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *ProjectGroupProjectsHandler

func (*ProjectGroupProjectsHandler) ServeHTTP

func (h *ProjectGroupProjectsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ProjectGroupSubgroupsHandler

type ProjectGroupSubgroupsHandler struct {
	// contains filtered or unexported fields
}

func NewProjectGroupSubgroupsHandler

func NewProjectGroupSubgroupsHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *ProjectGroupSubgroupsHandler

func (*ProjectGroupSubgroupsHandler) ServeHTTP

func (h *ProjectGroupSubgroupsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ProjectHandler

type ProjectHandler struct {
	// contains filtered or unexported fields
}

func NewProjectHandler

func NewProjectHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *ProjectHandler

func (*ProjectHandler) ServeHTTP

func (h *ProjectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RemoteSourceHandler

type RemoteSourceHandler struct {
	// contains filtered or unexported fields
}

func NewRemoteSourceHandler

func NewRemoteSourceHandler(logger *zap.Logger, readDB *readdb.ReadDB) *RemoteSourceHandler

func (*RemoteSourceHandler) ServeHTTP

func (h *RemoteSourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RemoteSourcesHandler

type RemoteSourcesHandler struct {
	// contains filtered or unexported fields
}

func NewRemoteSourcesHandler

func NewRemoteSourcesHandler(logger *zap.Logger, readDB *readdb.ReadDB) *RemoteSourcesHandler

func (*RemoteSourcesHandler) ServeHTTP

func (h *RemoteSourcesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RemoveOrgMemberHandler

type RemoveOrgMemberHandler struct {
	// contains filtered or unexported fields
}

func NewRemoveOrgMemberHandler

func NewRemoveOrgMemberHandler(logger *zap.Logger, ah *action.ActionHandler) *RemoveOrgMemberHandler

func (*RemoveOrgMemberHandler) ServeHTTP

func (h *RemoveOrgMemberHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SecretHandler

type SecretHandler struct {
	// contains filtered or unexported fields
}

func NewSecretHandler

func NewSecretHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *SecretHandler

func (*SecretHandler) ServeHTTP

func (h *SecretHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SecretsHandler

type SecretsHandler struct {
	// contains filtered or unexported fields
}

func NewSecretsHandler

func NewSecretsHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *SecretsHandler

func (*SecretsHandler) ServeHTTP

func (h *SecretsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UpdateProjectGroupHandler

type UpdateProjectGroupHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateProjectGroupHandler

func NewUpdateProjectGroupHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *UpdateProjectGroupHandler

func (*UpdateProjectGroupHandler) ServeHTTP

func (h *UpdateProjectGroupHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UpdateProjectHandler

type UpdateProjectHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateProjectHandler

func NewUpdateProjectHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *UpdateProjectHandler

func (*UpdateProjectHandler) ServeHTTP

func (h *UpdateProjectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UpdateRemoteSourceHandler

type UpdateRemoteSourceHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateRemoteSourceHandler

func NewUpdateRemoteSourceHandler(logger *zap.Logger, ah *action.ActionHandler) *UpdateRemoteSourceHandler

func (*UpdateRemoteSourceHandler) ServeHTTP

func (h *UpdateRemoteSourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UpdateSecretHandler

type UpdateSecretHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateSecretHandler

func NewUpdateSecretHandler(logger *zap.Logger, ah *action.ActionHandler) *UpdateSecretHandler

func (*UpdateSecretHandler) ServeHTTP

func (h *UpdateSecretHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UpdateUserHandler

type UpdateUserHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateUserHandler

func NewUpdateUserHandler(logger *zap.Logger, ah *action.ActionHandler) *UpdateUserHandler

func (*UpdateUserHandler) ServeHTTP

func (h *UpdateUserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UpdateUserLAHandler

type UpdateUserLAHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateUserLAHandler

func NewUpdateUserLAHandler(logger *zap.Logger, ah *action.ActionHandler) *UpdateUserLAHandler

func (*UpdateUserLAHandler) ServeHTTP

func (h *UpdateUserLAHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UpdateVariableHandler

type UpdateVariableHandler struct {
	// contains filtered or unexported fields
}

func NewUpdateVariableHandler

func NewUpdateVariableHandler(logger *zap.Logger, ah *action.ActionHandler) *UpdateVariableHandler

func (*UpdateVariableHandler) ServeHTTP

func (h *UpdateVariableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(logger *zap.Logger, readDB *readdb.ReadDB) *UserHandler

func (*UserHandler) ServeHTTP

func (h *UserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UserOrgsHandler

type UserOrgsHandler struct {
	// contains filtered or unexported fields
}

func NewUserOrgsHandler

func NewUserOrgsHandler(logger *zap.Logger, ah *action.ActionHandler) *UserOrgsHandler

func (*UserOrgsHandler) ServeHTTP

func (h *UserOrgsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UsersHandler

type UsersHandler struct {
	// contains filtered or unexported fields
}

func NewUsersHandler

func NewUsersHandler(logger *zap.Logger, readDB *readdb.ReadDB) *UsersHandler

func (*UsersHandler) ServeHTTP

func (h *UsersHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type VariablesHandler

type VariablesHandler struct {
	// contains filtered or unexported fields
}

func NewVariablesHandler

func NewVariablesHandler(logger *zap.Logger, ah *action.ActionHandler, readDB *readdb.ReadDB) *VariablesHandler

func (*VariablesHandler) ServeHTTP

func (h *VariablesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier