# Functions
ApplyInstallationPermissions takes permissions and applies a new permission if valid.
GetInstallationPermission takes permissions and returns the permission level if valid.
GetReadWriter converts a body interface into an io.ReadWriter object.
InstallationHasPermission takes a resource:perm pair and checks if the actual permission matches the expected permission or is supersceded by a higher permission.
New returns a SCM implementation that integrates with a GitHub or a GitHub Enterprise instance.
NewRSASigner creates a new RSASigner with the given RSA key.
NewTest returns a SCM implementation that integrates with the provided mock server.
NewTestAppsTransport creates a new AppsTransport for testing purposes.
WithAddress sets the GitHub address in the scm client for GitHub.
WithClientID sets the OAuth client ID in the scm client for GitHub.
WithClientSecret sets the OAuth client secret in the scm client for GitHub.
WithGithubAppID sets the ID for the GitHub App in the scm client.
WithGitHubAppPermissions sets the App permissions in the scm client for GitHub.
WithGithubPrivateKey sets the private key for the GitHub App in the scm client.
WithGithubPrivateKeyPath sets the private key path for the GitHub App in the scm client.
WithOAuthScopes sets the OAuth scopes in the scm client for GitHub.
WithServerAddress sets the Vela server address in the scm client for GitHub.
WithServerWebhookAddress sets the Vela server webhook address in the scm client for GitHub.
WithSigner configures the AppsTransport to use the given Signer for generating JWT tokens.
WithStatusContext sets the context for commit statuses in the scm client for GitHub.
WithTracing sets the shared tracing config in the scm client for GitHub.
WithWebUIAddress sets the Vela web UI address in the scm client for GitHub.
# Constants
GitHub App install permission 'none'.
GitHub App install permission 'read'.
GitHub App install permission 'write'.
GitHub App install checks resource.
GitHub App install contents resource.
GitHub App install packages resource.
# Structs
AppsTransport provides a http.RoundTripper by wrapping an existing http.RoundTripper and provides GitHub Apps authentication as a GitHub App.
RSASigner signs JWT tokens using RSA keys.
Transport provides a http.RoundTripper by wrapping an existing http.RoundTripper and provides GitHub Apps authentication as an installation.
# Type aliases
AppsTransportOption is a func option for configuring an AppsTransport.
ClientOpt represents a configuration option to initialize the scm client for GitHub.