Documentation ¶
Index ¶
- func Init(version string, alerter alerter.AlerterInterface, ...) error
- func NewGithubRepository(config githubConfig, c cache.Cache) *githubRepository
- type GithubBranchProtectionEnumerator
- type GithubGraphQLClient
- type GithubMembershipEnumerator
- type GithubRepository
- type GithubRepositoryEnumerator
- type GithubTeamEnumerator
- type GithubTeamMembershipEnumerator
- type GithubTerraformProvider
- type MockGithubRepository
- func (_m *MockGithubRepository) ListBranchProtection() ([]string, error)
- func (_m *MockGithubRepository) ListMembership() ([]string, error)
- func (_m *MockGithubRepository) ListRepositories() ([]string, error)
- func (_m *MockGithubRepository) ListTeamMemberships() ([]string, error)
- func (_m *MockGithubRepository) ListTeams() ([]Team, error)
- type Team
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 ¶
Types ¶
type GithubBranchProtectionEnumerator ¶
type GithubBranchProtectionEnumerator struct {
// contains filtered or unexported fields
}
func NewGithubBranchProtectionEnumerator ¶
func NewGithubBranchProtectionEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubBranchProtectionEnumerator
func (*GithubBranchProtectionEnumerator) Enumerate ¶
func (g *GithubBranchProtectionEnumerator) Enumerate() ([]*resource.Resource, error)
func (*GithubBranchProtectionEnumerator) SupportedType ¶
func (g *GithubBranchProtectionEnumerator) SupportedType() resource.ResourceType
type GithubGraphQLClient ¶
type GithubMembershipEnumerator ¶
type GithubMembershipEnumerator struct { Membership GithubRepository // contains filtered or unexported fields }
func NewGithubMembershipEnumerator ¶
func NewGithubMembershipEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubMembershipEnumerator
func (*GithubMembershipEnumerator) Enumerate ¶
func (g *GithubMembershipEnumerator) Enumerate() ([]*resource.Resource, error)
func (*GithubMembershipEnumerator) SupportedType ¶
func (g *GithubMembershipEnumerator) SupportedType() resource.ResourceType
type GithubRepository ¶
type GithubRepositoryEnumerator ¶
type GithubRepositoryEnumerator struct {
// contains filtered or unexported fields
}
func NewGithubRepositoryEnumerator ¶
func NewGithubRepositoryEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubRepositoryEnumerator
func (*GithubRepositoryEnumerator) Enumerate ¶
func (g *GithubRepositoryEnumerator) Enumerate() ([]*resource.Resource, error)
func (*GithubRepositoryEnumerator) SupportedType ¶
func (g *GithubRepositoryEnumerator) SupportedType() resource.ResourceType
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 NewGithubTeamMembershipEnumerator ¶
func NewGithubTeamMembershipEnumerator(repo GithubRepository, factory resource.ResourceFactory) *GithubTeamMembershipEnumerator
func (*GithubTeamMembershipEnumerator) Enumerate ¶
func (g *GithubTeamMembershipEnumerator) Enumerate() ([]*resource.Resource, error)
func (*GithubTeamMembershipEnumerator) SupportedType ¶
func (g *GithubTeamMembershipEnumerator) SupportedType() resource.ResourceType
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 ¶
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:
Click to show internal directories.
Click to hide internal directories.