Documentation ¶
Overview ¶
Package azure implements a azure client.
Index ¶
- func New(uri, owner, project string) (*scm.Client, error)
- func NewDefault(owner, project string) *scm.Client
- func ProjectRequiredError() error
- func SanitizeBranchName(name string) string
- type Error
- type RepositoryService
- func (s *RepositoryService) CreateDeployStatus(ctx context.Context, repo string, input *scm.DeployStatus) (*scm.DeployStatus, *scm.Response, error)
- func (s *RepositoryService) CreateHook(ctx context.Context, repo string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)
- func (s *RepositoryService) CreateStatus(ctx context.Context, repo, ref string, input *scm.StatusInput) (*scm.Status, *scm.Response, error)
- func (s *RepositoryService) DeleteHook(ctx context.Context, repo, id string) (*scm.Response, error)
- func (s *RepositoryService) Find(ctx context.Context, repo string) (*scm.Repository, *scm.Response, error)
- func (s *RepositoryService) FindHook(ctx context.Context, repo string, id string) (*scm.Hook, *scm.Response, error)
- func (s *RepositoryService) FindPerms(ctx context.Context, repo string) (*scm.Perm, *scm.Response, error)
- func (s *RepositoryService) List(ctx context.Context, opts scm.ListOptions) ([]*scm.Repository, *scm.Response, error)
- func (s *RepositoryService) ListHooks(ctx context.Context, repo string, opts scm.ListOptions) ([]*scm.Hook, *scm.Response, error)
- func (s *RepositoryService) ListNamespace(ctx context.Context, _ string, opts scm.ListOptions) ([]*scm.Repository, *scm.Response, error)
- func (s *RepositoryService) ListStatus(ctx context.Context, repo, ref string, opts scm.ListOptions) ([]*scm.Status, *scm.Response, error)
- func (s *RepositoryService) ListV2(ctx context.Context, opts scm.RepoListOptions) ([]*scm.Repository, *scm.Response, error)
- func (s *RepositoryService) UpdateHook(ctx context.Context, repo, id string, input *scm.HookInput) (*scm.Hook, *scm.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefault ¶
NewDefault returns a new azure API client.
func ProjectRequiredError ¶ added in v1.22.0
func ProjectRequiredError() error
func SanitizeBranchName ¶
Types ¶
type RepositoryService ¶
type RepositoryService struct {
// contains filtered or unexported fields
}
RepositoryService implements the repository service for the GitHub driver.
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) DeleteHook ¶
DeleteHook deletes a repository webhook.
func (*RepositoryService) Find ¶
func (s *RepositoryService) Find(ctx context.Context, repo string) (*scm.Repository, *scm.Response, error)
Find returns the repository by name.
func (*RepositoryService) FindHook ¶
func (s *RepositoryService) FindHook(ctx context.Context, repo string, 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) List ¶
func (s *RepositoryService) List(ctx context.Context, opts scm.ListOptions) ([]*scm.Repository, *scm.Response, error)
List returns the user repository list.
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) ListNamespace ¶ added in v1.38.0
func (s *RepositoryService) ListNamespace(ctx context.Context, _ string, opts scm.ListOptions) ([]*scm.Repository, *scm.Response, error)
ListNamespace is of no use in azure as our client already has project information
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) ListV2 ¶ added in v1.30.0
func (s *RepositoryService) ListV2(ctx context.Context, opts scm.RepoListOptions) ([]*scm.Repository, *scm.Response, error)
ListV2 returns the user repository list.