azure

package
v1.11.26 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: BSD-3-Clause Imports: 13 Imported by: 1

Documentation

Overview

Package azure implements a azure client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(uri, owner, project string) (*scm.Client, error)

New returns a new azure API client.

func NewDefault

func NewDefault(owner, project string) *scm.Client

NewDefault returns a new azure API client.

func ProjectRequiredError

func ProjectRequiredError() error

func SanitizeBranchName

func SanitizeBranchName(name string) string

Types

type Error

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

Error represents am Azure error.

func (*Error) Error

func (e *Error) Error() string

type RepositoryService

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

RepositoryService implements the repository service for the GitHub driver.

func (*RepositoryService) AddCollaborator

func (s *RepositoryService) AddCollaborator(ctx context.Context, repo, user, permission string) (bool, bool, *scm.Response, error)

func (*RepositoryService) Create

func (*RepositoryService) CreateDeployStatus

func (s *RepositoryService) CreateDeployStatus(ctx context.Context, repo string, input *scm.DeployStatus) (*scm.DeployStatus, *scm.Response, error)

CreateDeployStatus creates a new deployment status.

func (*RepositoryService) CreateHook

func (s *RepositoryService) CreateHook(ctx context.Context, repo string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)

CreateHook creates a new repository webhook.

func (*RepositoryService) CreateStatus

func (s *RepositoryService) CreateStatus(ctx context.Context, repo, ref string, input *scm.StatusInput) (*scm.Status, *scm.Response, error)

CreateStatus creates a new commit status.

func (*RepositoryService) Delete

func (s *RepositoryService) Delete(ctx context.Context, repo string) (*scm.Response, error)

func (*RepositoryService) DeleteHook

func (s *RepositoryService) DeleteHook(ctx context.Context, repo, id string) (*scm.Response, error)

DeleteHook deletes a repository webhook.

func (*RepositoryService) Find

Find returns the repository by name.

func (*RepositoryService) FindCombinedStatus

func (s *RepositoryService) FindCombinedStatus(ctx context.Context, repo, ref string) (*scm.CombinedStatus, *scm.Response, error)

func (*RepositoryService) FindHook

func (s *RepositoryService) FindHook(ctx context.Context, repo, id string) (*scm.Hook, *scm.Response, error)

FindHook returns a repository hook.

func (*RepositoryService) FindPerms

func (s *RepositoryService) FindPerms(ctx context.Context, repo string) (*scm.Perm, *scm.Response, error)

FindPerms returns the repository permissions.

func (*RepositoryService) FindUserPermission

func (s *RepositoryService) FindUserPermission(ctx context.Context, repo, user string) (string, *scm.Response, error)

func (*RepositoryService) Fork

func (*RepositoryService) IsCollaborator

func (s *RepositoryService) IsCollaborator(ctx context.Context, repo, user string) (bool, *scm.Response, error)

func (*RepositoryService) List

List returns the user repository list.

func (*RepositoryService) ListCollaborators

func (s *RepositoryService) ListCollaborators(ctx context.Context, repo string, ops *scm.ListOptions) ([]scm.User, *scm.Response, error)

func (*RepositoryService) ListHooks

func (s *RepositoryService) ListHooks(ctx context.Context, repo string, opts *scm.ListOptions) ([]*scm.Hook, *scm.Response, error)

ListHooks returns a list or repository hooks.

func (*RepositoryService) ListLabels

func (s *RepositoryService) ListLabels(ctx context.Context, s2 string, options *scm.ListOptions) ([]*scm.Label, *scm.Response, error)

func (*RepositoryService) ListOrganisation

func (s *RepositoryService) ListOrganisation(ctx context.Context, s2 string, options *scm.ListOptions) ([]*scm.Repository, *scm.Response, error)

func (*RepositoryService) ListStatus

func (s *RepositoryService) ListStatus(ctx context.Context, repo, ref string, opts *scm.ListOptions) ([]*scm.Status, *scm.Response, error)

ListStatus returns a list of commit statuses.

func (*RepositoryService) ListUser

func (s *RepositoryService) ListUser(ctx context.Context, s2 string, options *scm.ListOptions) ([]*scm.Repository, *scm.Response, error)

func (*RepositoryService) UpdateHook

func (s *RepositoryService) UpdateHook(ctx context.Context, repo string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)

UpdateHook updates a repository webhook.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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