connector

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 40 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidAssetDomains = []string{"avatars.githubusercontent.com"}
)

Functions

func APITokenBuilder added in v0.3.6

func APITokenBuilder(client *github.Client, orgCache *orgNameCache) *apiTokenResourceType

func EnterpriseRoleBuilder added in v0.3.6

func EnterpriseRoleBuilder(client *github.Client, appClient *github.Client, customClient *customclient.Client, enterprises []string) *enterpriseRoleResourceType

func InvitationBuilder added in v0.3.6

func InvitationBuilder(p InvitationBuilderParams) *invitationResourceType

func LicenseBuilder added in v0.3.6

func LicenseBuilder(
	customClient *customclient.Client,
	enterprises []string,
) *licenseResourceType

func NewLambdaConnector added in v0.2.4

func OrgBuilder added in v0.3.6

func OrgBuilder(client, appClient *github.Client, orgCache *orgNameCache, orgs []string, syncSecrets bool) *orgResourceType

func OrgRoleBuilder added in v0.3.6

func OrgRoleBuilder(client *github.Client, orgCache *orgNameCache) *orgRoleResourceType

func RepositoryBuilder added in v0.3.6

func RepositoryBuilder(client *github.Client, orgCache *orgNameCache, omitArchivedRepositories bool, directCollaboratorsOnly bool) *repositoryResourceType

func TeamBuilder added in v0.3.6

func TeamBuilder(client *github.Client, orgCache *orgNameCache, directCollaboratorsOnly bool) *teamResourceType

func UserBuilder added in v0.3.6

func UserBuilder(client *github.Client, graphqlClient *githubv4.Client, orgCache *orgNameCache, orgs []string, customClient *customclient.Client, enterprises []string) *userResourceType

Types

type GitHub added in v0.1.16

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

func (*GitHub) Metadata added in v0.1.16

func (gh *GitHub) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

func (*GitHub) ResourceSyncers added in v0.1.16

func (gh *GitHub) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncerV2

func (*GitHub) Validate added in v0.1.16

func (gh *GitHub) Validate(ctx context.Context) (annotations.Annotations, error)

Validate hits the GitHub API to validate that the configured credentials are still valid.

type InvitationBuilderParams added in v0.3.6

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

type OrganizationRole added in v0.1.30

type OrganizationRole struct {
	ID          int64  `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type OrganizationRoleResponse added in v0.1.30

type OrganizationRoleResponse struct {
	TotalCount int                `json:"total_count"`
	Roles      []OrganizationRole `json:"roles"`
}

type OrganizationRoleTeam added in v0.1.30

type OrganizationRoleTeam struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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