github

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(version string, alerter alerter.AlerterInterface, providerLibrary *terraform.ProviderLibrary, remoteLibrary *common.RemoteLibrary, progress enumeration.ProgressCounter, 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 enumeration.ProgressCounter, 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 NewMockGithubRepository added in v0.39.0

func NewMockGithubRepository(t mockConstructorTestingTNewMockGithubRepository) *MockGithubRepository

NewMockGithubRepository creates a new instance of MockGithubRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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