Versions in this module Expand all Collapse all v0 v0.2.1 Aug 5, 2021 Changes in this version + const DefaultDomain + const ProviderID + const TokenVariable + func NewClient(optFns ...ClientOption) (gitprovider.Client, error) + type BranchClient struct + func (c *BranchClient) Create(ctx context.Context, branch, sha string) error + func (c *BranchClient) List(ctx context.Context) ([]string, error) + type Client struct + func (c *Client) HasTokenPermission(ctx context.Context, permission gitprovider.TokenPermission) (bool, error) + func (c *Client) OrgRepositories() gitprovider.OrgRepositoriesClient + func (c *Client) Organizations() gitprovider.OrganizationsClient + func (c *Client) ProviderID() gitprovider.ProviderID + func (c *Client) Raw() interface{} + func (c *Client) SupportedDomain() string + func (c *Client) UserRepositories() gitprovider.UserRepositoriesClient + type ClientOption interface + ApplyToGithubClientOptions func(target *clientOptions) error + func WithConditionalRequests(conditionalRequests bool) ClientOption + func WithDestructiveAPICalls(destructiveActions bool) ClientOption + func WithDomain(domain string) ClientOption + func WithOAuth2Token(oauth2Token string) ClientOption + func WithPostChainTransportHook(postRoundTripperFunc gitprovider.ChainableRoundTripperFunc) ClientOption + func WithPreChainTransportHook(preRoundTripperFunc gitprovider.ChainableRoundTripperFunc) ClientOption + type CommitClient struct + func (c *CommitClient) Create(ctx context.Context, branch string, message string, ...) (gitprovider.Commit, error) + func (c *CommitClient) ListPage(ctx context.Context, branch string, perPage, page int) ([]gitprovider.Commit, error) + type DeployKeyClient struct + func (c *DeployKeyClient) Create(ctx context.Context, req gitprovider.DeployKeyInfo) (gitprovider.DeployKey, error) + func (c *DeployKeyClient) Get(ctx context.Context, name string) (gitprovider.DeployKey, error) + func (c *DeployKeyClient) List(ctx context.Context) ([]gitprovider.DeployKey, error) + func (c *DeployKeyClient) Reconcile(ctx context.Context, req gitprovider.DeployKeyInfo) (gitprovider.DeployKey, bool, error) + type OrgRepositoriesClient struct + func (c *OrgRepositoriesClient) Create(ctx context.Context, ref gitprovider.OrgRepositoryRef, ...) (gitprovider.OrgRepository, error) + func (c *OrgRepositoriesClient) Get(ctx context.Context, ref gitprovider.OrgRepositoryRef) (gitprovider.OrgRepository, error) + func (c *OrgRepositoriesClient) List(ctx context.Context, ref gitprovider.OrganizationRef) ([]gitprovider.OrgRepository, error) + func (c *OrgRepositoriesClient) Reconcile(ctx context.Context, ref gitprovider.OrgRepositoryRef, ...) (gitprovider.OrgRepository, bool, error) + type OrganizationsClient struct + func (c *OrganizationsClient) Children(_ context.Context, _ gitprovider.OrganizationRef) ([]gitprovider.Organization, error) + func (c *OrganizationsClient) Get(ctx context.Context, ref gitprovider.OrganizationRef) (gitprovider.Organization, error) + func (c *OrganizationsClient) List(ctx context.Context) ([]gitprovider.Organization, error) + type PullRequestClient struct + func (c *PullRequestClient) Create(ctx context.Context, title, branch, baseBranch, description string) (gitprovider.PullRequest, error) + type TeamAccessClient struct + func (c *TeamAccessClient) Create(ctx context.Context, req gitprovider.TeamAccessInfo) (gitprovider.TeamAccess, error) + func (c *TeamAccessClient) Get(ctx context.Context, name string) (gitprovider.TeamAccess, error) + func (c *TeamAccessClient) List(ctx context.Context) ([]gitprovider.TeamAccess, error) + func (c *TeamAccessClient) Reconcile(ctx context.Context, req gitprovider.TeamAccessInfo) (gitprovider.TeamAccess, bool, error) + type TeamsClient struct + func (c *TeamsClient) Get(ctx context.Context, teamName string) (gitprovider.Team, error) + func (c *TeamsClient) List(ctx context.Context) ([]gitprovider.Team, error) + type UserRepositoriesClient struct + func (c *UserRepositoriesClient) Create(ctx context.Context, ref gitprovider.UserRepositoryRef, ...) (gitprovider.UserRepository, error) + func (c *UserRepositoriesClient) Get(ctx context.Context, ref gitprovider.UserRepositoryRef) (gitprovider.UserRepository, error) + func (c *UserRepositoriesClient) List(ctx context.Context, ref gitprovider.UserRef) ([]gitprovider.UserRepository, error) + func (c *UserRepositoriesClient) Reconcile(ctx context.Context, ref gitprovider.UserRepositoryRef, ...) (gitprovider.UserRepository, bool, error)