Documentation
¶
Index ¶
- Variables
- type AppInstallation
- type AuditLogEvent
- type Client
- func (c *Client) ListEnterpriseSAMLExternalIdentities(ctx context.Context, enterprise string) ([]SAMLExternalIdentity, error)
- func (c *Client) ListOrgAuditLog(ctx context.Context, org string) ([]AuditLogEvent, error)
- func (c *Client) ListOrgInstallations(ctx context.Context, org string) ([]AppInstallation, error)
- func (c *Client) ListOrgMembers(ctx context.Context, org string) ([]Member, error)
- func (c *Client) ListOrgPersonalAccessTokenRequests(ctx context.Context, org string) ([]PersonalAccessTokenRequest, error)
- func (c *Client) ListOrgPersonalAccessTokens(ctx context.Context, org string) ([]PersonalAccessToken, error)
- func (c *Client) ListOrgRepos(ctx context.Context, org string) ([]Repository, error)
- func (c *Client) ListOrgSAMLExternalIdentities(ctx context.Context, org string) ([]SAMLExternalIdentity, error)
- func (c *Client) ListOrgSCIMUsers(ctx context.Context, org string) ([]SCIMUser, error)
- func (c *Client) ListRepoDeployKeys(ctx context.Context, org, repo string) ([]DeployKey, error)
- func (c *Client) ListTeamMembers(ctx context.Context, org, teamSlug string) ([]TeamMember, error)
- func (c *Client) ListTeamRepos(ctx context.Context, org, teamSlug string) ([]TeamRepo, error)
- func (c *Client) ListTeams(ctx context.Context, org string) ([]Team, error)
- type Definition
- func (d *Definition) ConfiguredSubtitle(cfg any) string
- func (d *Definition) DecodeConfig(raw []byte) (any, error)
- func (d *Definition) DefaultSubtitle() string
- func (d *Definition) DisplayName() string
- func (d *Definition) IsConfigured(cfg any) bool
- func (d *Definition) Kind() string
- func (d *Definition) MetricsProvider() registry.MetricsProvider
- func (d *Definition) NewIntegration(cfg any) (registry.Integration, error)
- func (d *Definition) Role() registry.IntegrationRole
- func (d *Definition) SettingsHref() string
- func (d *Definition) SourceName(cfg any) string
- func (d *Definition) ValidateConfig(cfg any) error
- type DeployKey
- type GitHubIntegration
- func (i *GitHubIntegration) InitEvents() []registry.Event
- func (i *GitHubIntegration) Kind() string
- func (i *GitHubIntegration) Name() string
- func (i *GitHubIntegration) Role() registry.IntegrationRole
- func (i *GitHubIntegration) Run(ctx context.Context, q *gen.Queries, pool *pgxpool.Pool, ...) error
- type Member
- type PersonalAccessToken
- type PersonalAccessTokenRequest
- type Repository
- type SAMLExternalIdentity
- type SCIMEmail
- type SCIMUser
- type Team
- type TeamMember
- type TeamRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoEnterpriseSAMLIdentityProvider = errors.New("github enterprise saml identity provider is not configured")
View Source
var ErrNoSAMLIdentityProvider = errors.New("github saml identity provider is not configured")
Functions ¶
This section is empty.
Types ¶
type AppInstallation ¶ added in v0.3.0
type AuditLogEvent ¶ added in v0.3.0
type AuditLogEvent struct {
DocumentID string `json:"_document_id"`
ID string `json:"id"`
Action string `json:"action"`
Actor string `json:"actor"`
User string `json:"user"`
CreatedAtRaw string `json:"@timestamp"`
Repository string `json:"repository"`
Repo string `json:"repo"`
RequestID string `json:"request_id"`
PATRequestID string `json:"pat_request_id"`
PersonalTokenID string `json:"personal_access_token_id"`
KeyID string `json:"key_id"`
DeployKeyID string `json:"deploy_key_id"`
TokenID string `json:"token_id"`
Fingerprint string `json:"fingerprint"`
OperationType string `json:"operation_type"`
ProgrammaticActor string `json:"programmatic_access_type"`
RawJSON []byte `json:"-"`
}
type Client ¶
func (*Client) ListEnterpriseSAMLExternalIdentities ¶
func (*Client) ListOrgAuditLog ¶ added in v0.3.0
func (*Client) ListOrgInstallations ¶ added in v0.3.0
func (*Client) ListOrgMembers ¶
func (*Client) ListOrgPersonalAccessTokenRequests ¶ added in v0.3.0
func (*Client) ListOrgPersonalAccessTokens ¶ added in v0.3.0
func (*Client) ListOrgRepos ¶ added in v0.3.0
func (*Client) ListOrgSAMLExternalIdentities ¶
func (*Client) ListOrgSCIMUsers ¶
func (*Client) ListRepoDeployKeys ¶ added in v0.3.0
func (*Client) ListTeamMembers ¶
func (*Client) ListTeamRepos ¶
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func NewDefinition ¶
func NewDefinition(workers int) *Definition
func (*Definition) ConfiguredSubtitle ¶
func (d *Definition) ConfiguredSubtitle(cfg any) string
func (*Definition) DecodeConfig ¶
func (d *Definition) DecodeConfig(raw []byte) (any, error)
func (*Definition) DefaultSubtitle ¶
func (d *Definition) DefaultSubtitle() string
func (*Definition) DisplayName ¶
func (d *Definition) DisplayName() string
func (*Definition) IsConfigured ¶
func (d *Definition) IsConfigured(cfg any) bool
func (*Definition) Kind ¶
func (d *Definition) Kind() string
func (*Definition) MetricsProvider ¶
func (d *Definition) MetricsProvider() registry.MetricsProvider
func (*Definition) NewIntegration ¶
func (d *Definition) NewIntegration(cfg any) (registry.Integration, error)
func (*Definition) Role ¶
func (d *Definition) Role() registry.IntegrationRole
func (*Definition) SettingsHref ¶
func (d *Definition) SettingsHref() string
func (*Definition) SourceName ¶
func (d *Definition) SourceName(cfg any) string
func (*Definition) ValidateConfig ¶
func (d *Definition) ValidateConfig(cfg any) error
type GitHubIntegration ¶
type GitHubIntegration struct {
// contains filtered or unexported fields
}
func NewGitHubIntegration ¶
func (*GitHubIntegration) InitEvents ¶
func (i *GitHubIntegration) InitEvents() []registry.Event
func (*GitHubIntegration) Kind ¶
func (i *GitHubIntegration) Kind() string
func (*GitHubIntegration) Name ¶
func (i *GitHubIntegration) Name() string
func (*GitHubIntegration) Role ¶
func (i *GitHubIntegration) Role() registry.IntegrationRole
type PersonalAccessToken ¶ added in v0.3.0
type PersonalAccessToken struct {
ID int64
Name string
Status string
OwnerLogin string
OwnerID int64
RepositorySelection string
Permissions map[string]string
CreatedAtRaw string
UpdatedAtRaw string
LastUsedAtRaw string
ExpiresAtRaw string
Expired bool
Revoked bool
ReviewerLogin string
ReviewerID int64
ReviewedAtRaw string
RawJSON []byte
}
type PersonalAccessTokenRequest ¶ added in v0.3.0
type PersonalAccessTokenRequest struct {
ID int64
TokenID int64
TokenName string
Status string
OwnerLogin string
OwnerID int64
RepositorySelection string
Permissions map[string]string
CreatedAtRaw string
UpdatedAtRaw string
LastUsedAtRaw string
ExpiresAtRaw string
ReviewerLogin string
ReviewerID int64
ReviewedAtRaw string
RawJSON []byte
}
type Repository ¶ added in v0.3.0
type SAMLExternalIdentity ¶
type SAMLExternalIdentity struct {
Login string
NameID string
// SCIMUserName is the SCIM identity username (often the SCIM userName).
SCIMUserName string
// SCIMEmail is the first SCIM identity email value (when present).
SCIMEmail string
// UserEmail is the GitHub user email from the GraphQL user.email field.
UserEmail string
}
type SCIMUser ¶
type SCIMUser struct {
ID string
UserName string
DisplayName string
Active bool
Emails []SCIMEmail
// GitHubLogin may be populated from GitHub SCIM extensions when available.
GitHubLogin string
RawJSON []byte
}
func (SCIMUser) PreferredEmail ¶
type TeamMember ¶
Click to show internal directories.
Click to hide internal directories.