github

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(version string, alerter *alerter.Alerter,
	providerLibrary *terraform.ProviderLibrary,
	remoteLibrary *common.RemoteLibrary,
	progress output.Progress,
	resourceSchemaRepository *resource.SchemaRepository,
	factory resource.ResourceFactory,
	configDir string) error

func NewGithubRepository

func NewGithubRepository(config githubConfig, c cache.Cache) *githubRepository

Types

type GithubBranchProtectionEnumerator

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

func (*GithubBranchProtectionEnumerator) Enumerate

func (*GithubBranchProtectionEnumerator) SupportedType

type GithubGraphQLClient

type GithubGraphQLClient interface {
	Query(ctx context.Context, q interface{}, variables map[string]interface{}) error
}

type GithubMembershipEnumerator

type GithubMembershipEnumerator struct {
	Membership GithubRepository
	// contains filtered or unexported fields
}

func (*GithubMembershipEnumerator) Enumerate

func (g *GithubMembershipEnumerator) Enumerate() ([]*resource.Resource, error)

func (*GithubMembershipEnumerator) SupportedType

type GithubRepository

type GithubRepository interface {
	ListRepositories() ([]string, error)
	ListTeams() ([]Team, error)
	ListMembership() ([]string, error)
	ListTeamMemberships() ([]string, error)
	ListBranchProtection() ([]string, error)
}

type GithubRepositoryEnumerator

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

func (*GithubRepositoryEnumerator) Enumerate

func (g *GithubRepositoryEnumerator) Enumerate() ([]*resource.Resource, error)

func (*GithubRepositoryEnumerator) SupportedType

type GithubTeamEnumerator

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

func NewGithubTeamEnumerator

func NewGithubTeamEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubTeamEnumerator

func (*GithubTeamEnumerator) Enumerate

func (g *GithubTeamEnumerator) Enumerate() ([]*resource.Resource, error)

func (*GithubTeamEnumerator) SupportedType

func (g *GithubTeamEnumerator) SupportedType() resource.ResourceType

type GithubTeamMembershipEnumerator

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

func (*GithubTeamMembershipEnumerator) Enumerate

func (*GithubTeamMembershipEnumerator) SupportedType

type GithubTerraformProvider

type GithubTerraformProvider struct {
	*terraform.TerraformProvider
	// contains filtered or unexported fields
}

func NewGithubTerraformProvider

func NewGithubTerraformProvider(version string, progress output.Progress, configDir string) (*GithubTerraformProvider, error)

func (GithubTerraformProvider) GetConfig

func (p GithubTerraformProvider) GetConfig() githubConfig

func (*GithubTerraformProvider) Name

func (p *GithubTerraformProvider) Name() string

func (*GithubTerraformProvider) Version

func (p *GithubTerraformProvider) Version() string

type MockGithubRepository

type MockGithubRepository struct {
	mock.Mock
}

MockGithubRepository is an autogenerated mock type for the GithubRepository type

func (*MockGithubRepository) ListBranchProtection

func (_m *MockGithubRepository) ListBranchProtection() ([]string, error)

ListBranchProtection provides a mock function with given fields:

func (*MockGithubRepository) ListMembership

func (_m *MockGithubRepository) ListMembership() ([]string, error)

ListMembership provides a mock function with given fields:

func (*MockGithubRepository) ListRepositories

func (_m *MockGithubRepository) ListRepositories() ([]string, error)

ListRepositories provides a mock function with given fields:

func (*MockGithubRepository) ListTeamMemberships

func (_m *MockGithubRepository) ListTeamMemberships() ([]string, error)

ListTeamMemberships provides a mock function with given fields:

func (*MockGithubRepository) ListTeams

func (_m *MockGithubRepository) ListTeams() ([]Team, error)

ListTeams provides a mock function with given fields:

type Team

type Team struct {
	DatabaseId int
	Slug       string
}

Jump to

Keyboard shortcuts

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