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 (
	DefaultRunsLimit = 25
	MaxRunsLimit     = 40
)

func GetConfigTypeRef

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

func NewWebhooksHandler

func NewWebhooksHandler(logger *zap.Logger, ah *action.ActionHandler, configstoreClient *csclient.Client, runserviceClient *rsclient.Client, apiExposedURL string) *webhooksHandler

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 AuthorizeHandler

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

func NewAuthorizeHandler

func NewAuthorizeHandler(logger *zap.Logger, ah *action.ActionHandler) *AuthorizeHandler

func (*AuthorizeHandler) ServeHTTP

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

type BadgeHandler

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

func NewBadgeHandler

func NewBadgeHandler(logger *zap.Logger, ah *action.ActionHandler) *BadgeHandler

func (*BadgeHandler) ServeHTTP

func (h *BadgeHandler) 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) *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) *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 CurrentUserHandler

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

func NewCurrentUserHandler

func NewCurrentUserHandler(logger *zap.Logger, ah *action.ActionHandler) *CurrentUserHandler

func (*CurrentUserHandler) ServeHTTP

func (h *CurrentUserHandler) 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 LoginUserHandler

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

func NewLoginUserHandler

func NewLoginUserHandler(logger *zap.Logger, ah *action.ActionHandler) *LoginUserHandler

func (*LoginUserHandler) ServeHTTP

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

type LogsDeleteHandler

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

func NewLogsDeleteHandler

func NewLogsDeleteHandler(logger *zap.Logger, ah *action.ActionHandler) *LogsDeleteHandler

func (*LogsDeleteHandler) ServeHTTP

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

type LogsHandler

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

func NewLogsHandler

func NewLogsHandler(logger *zap.Logger, ah *action.ActionHandler) *LogsHandler

func (*LogsHandler) ServeHTTP

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

type OAuth2CallbackHandler

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

func NewOAuth2CallbackHandler

func NewOAuth2CallbackHandler(logger *zap.Logger, ah *action.ActionHandler) *OAuth2CallbackHandler

func (*OAuth2CallbackHandler) ServeHTTP

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

type OrgHandler

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

func NewOrgHandler

func NewOrgHandler(logger *zap.Logger, ah *action.ActionHandler) *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, ah *action.ActionHandler) *OrgsHandler

func (*OrgsHandler) ServeHTTP

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

type ProjectCreateRunHandler

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

func NewProjectCreateRunHandler

func NewProjectCreateRunHandler(logger *zap.Logger, ah *action.ActionHandler) *ProjectCreateRunHandler

func (*ProjectCreateRunHandler) ServeHTTP

func (h *ProjectCreateRunHandler) 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) *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) *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) *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) *ProjectHandler

func (*ProjectHandler) ServeHTTP

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

type ProjectReconfigHandler

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

func NewProjectReconfigHandler

func NewProjectReconfigHandler(logger *zap.Logger, ah *action.ActionHandler) *ProjectReconfigHandler

func (*ProjectReconfigHandler) ServeHTTP

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

type ProjectUpdateRepoLinkedAccountHandler

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

func NewProjectUpdateRepoLinkedAccountHandler

func NewProjectUpdateRepoLinkedAccountHandler(logger *zap.Logger, ah *action.ActionHandler) *ProjectUpdateRepoLinkedAccountHandler

func (*ProjectUpdateRepoLinkedAccountHandler) ServeHTTP

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

type RegisterUserHandler

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

func NewRegisterUserHandler

func NewRegisterUserHandler(logger *zap.Logger, ah *action.ActionHandler) *RegisterUserHandler

func (*RegisterUserHandler) ServeHTTP

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

type RemoteSourceHandler

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

func NewRemoteSourceHandler

func NewRemoteSourceHandler(logger *zap.Logger, ah *action.ActionHandler) *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, ah *action.ActionHandler) *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 ReposHandler

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

func NewReposHandler

func NewReposHandler(logger *zap.Logger, gitServerURL string) *ReposHandler

func (*ReposHandler) ServeHTTP

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

type RunActionsHandler

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

func NewRunActionsHandler

func NewRunActionsHandler(logger *zap.Logger, ah *action.ActionHandler) *RunActionsHandler

func (*RunActionsHandler) ServeHTTP

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

type RunHandler

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

func NewRunHandler

func NewRunHandler(logger *zap.Logger, ah *action.ActionHandler) *RunHandler

func (*RunHandler) ServeHTTP

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

type RunTaskActionsHandler

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

func NewRunTaskActionsHandler

func NewRunTaskActionsHandler(logger *zap.Logger, ah *action.ActionHandler) *RunTaskActionsHandler

func (*RunTaskActionsHandler) ServeHTTP

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

type RunsHandler

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

func NewRunsHandler

func NewRunsHandler(logger *zap.Logger, ah *action.ActionHandler) *RunsHandler

func (*RunsHandler) ServeHTTP

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

type RuntaskHandler

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

func NewRuntaskHandler

func NewRuntaskHandler(logger *zap.Logger, ah *action.ActionHandler) *RuntaskHandler

func (*RuntaskHandler) ServeHTTP

func (h *RuntaskHandler) 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) *SecretHandler

func (*SecretHandler) ServeHTTP

func (h *SecretHandler) 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) *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) *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 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 UserCreateRunHandler

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

func NewUserCreateRunHandler

func NewUserCreateRunHandler(logger *zap.Logger, ah *action.ActionHandler) *UserCreateRunHandler

func (*UserCreateRunHandler) ServeHTTP

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

type UserHandler

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

func NewUserHandler

func NewUserHandler(logger *zap.Logger, ah *action.ActionHandler) *UserHandler

func (*UserHandler) ServeHTTP

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

type UserRemoteReposHandler

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

func NewUserRemoteReposHandler

func NewUserRemoteReposHandler(logger *zap.Logger, ah *action.ActionHandler, configstoreClient *csclient.Client) *UserRemoteReposHandler

func (*UserRemoteReposHandler) ServeHTTP

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

type UsersHandler

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

func NewUsersHandler

func NewUsersHandler(logger *zap.Logger, ah *action.ActionHandler) *UsersHandler

func (*UsersHandler) ServeHTTP

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

type VariableHandler

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

func NewVariableHandler

func NewVariableHandler(logger *zap.Logger, ah *action.ActionHandler) *VariableHandler

func (*VariableHandler) ServeHTTP

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

type VersionHandler

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

func NewVersionHandler

func NewVersionHandler(logger *zap.Logger, ah *action.ActionHandler) *VersionHandler

func (*VersionHandler) ServeHTTP

func (h *VersionHandler) 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