Documentation ¶
Index ¶
- type BusinessServiceGenerator
- type EscalationPolicyGenerator
- type PagerDutyProvider
- func (p *PagerDutyProvider) GetConfig() cty.Value
- func (p *PagerDutyProvider) GetName() string
- func (p *PagerDutyProvider) GetProviderData(arg ...string) map[string]interface{}
- func (PagerDutyProvider) GetResourceConnections() map[string]map[string][]string
- func (p *PagerDutyProvider) GetSupportedService() map[string]terraformutils.ServiceGenerator
- func (p *PagerDutyProvider) Init(args []string) error
- func (p *PagerDutyProvider) InitService(serviceName string, verbose bool) error
- type PagerDutyService
- type RulesetGenerator
- type ScheduleGenerator
- type ServiceGenerator
- type TeamGenerator
- type UserGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BusinessServiceGenerator ¶
type BusinessServiceGenerator struct {
PagerDutyService
}
func (*BusinessServiceGenerator) InitResources ¶
func (g *BusinessServiceGenerator) InitResources() error
type EscalationPolicyGenerator ¶
type EscalationPolicyGenerator struct {
PagerDutyService
}
func (*EscalationPolicyGenerator) InitResources ¶
func (g *EscalationPolicyGenerator) InitResources() error
type PagerDutyProvider ¶
type PagerDutyProvider struct { terraformutils.Provider // contains filtered or unexported fields }
func (*PagerDutyProvider) GetConfig ¶
func (p *PagerDutyProvider) GetConfig() cty.Value
func (*PagerDutyProvider) GetName ¶
func (p *PagerDutyProvider) GetName() string
func (*PagerDutyProvider) GetProviderData ¶
func (p *PagerDutyProvider) GetProviderData(arg ...string) map[string]interface{}
func (PagerDutyProvider) GetResourceConnections ¶
func (PagerDutyProvider) GetResourceConnections() map[string]map[string][]string
func (*PagerDutyProvider) GetSupportedService ¶
func (p *PagerDutyProvider) GetSupportedService() map[string]terraformutils.ServiceGenerator
func (*PagerDutyProvider) Init ¶
func (p *PagerDutyProvider) Init(args []string) error
func (*PagerDutyProvider) InitService ¶
func (p *PagerDutyProvider) InitService(serviceName string, verbose bool) error
type PagerDutyService ¶
type PagerDutyService struct {
terraformutils.Service
}
type RulesetGenerator ¶
type RulesetGenerator struct {
PagerDutyService
}
func (*RulesetGenerator) InitResources ¶
func (g *RulesetGenerator) InitResources() error
golangci-lint says this function isn't used anywhere. Do we need it? Commenting it out to make the linter happy
func (g *RulesetGenerator) createRulesetRuleResources(client *pagerduty.Client) error { resp, _, err := client.Rulesets.List() if err != nil { return err } for _, ruleset := range resp.Rulesets { rules, _, err := client.Rulesets.ListRules(ruleset.ID) if err != nil { return err } for _, rule := range rules.Rules { g.Resources = append(g.Resources, terraformutils.NewSimpleResource( rule.ID, rule.ID, "pagerduty_ruleset_rule", g.ProviderName, []string{}, )) } } return nil }
type ScheduleGenerator ¶
type ScheduleGenerator struct {
PagerDutyService
}
func (*ScheduleGenerator) InitResources ¶
func (g *ScheduleGenerator) InitResources() error
type ServiceGenerator ¶
type ServiceGenerator struct {
PagerDutyService
}
func (*ServiceGenerator) InitResources ¶
func (g *ServiceGenerator) InitResources() error
type TeamGenerator ¶
type TeamGenerator struct {
PagerDutyService
}
func (*TeamGenerator) InitResources ¶
func (g *TeamGenerator) InitResources() error
type UserGenerator ¶
type UserGenerator struct {
PagerDutyService
}
func (*UserGenerator) InitResources ¶
func (g *UserGenerator) InitResources() error
Click to show internal directories.
Click to hide internal directories.