Skip to content

Commit

Permalink
ACCT-4459: end comments in periods
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Mobbs committed Sep 30, 2022
1 parent 5e812bd commit bd5a17f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resource_group.go
Expand Up @@ -19,19 +19,19 @@ type ScopeObject struct {
}

// NewResourceGroupForZone takes an existing zone and provides a resource group
// to be used within a Policy that allows access to that zone
// to be used within a Policy that allows access to that zone.
func NewResourceGroupForZone(zone Zone) ResourceGroup {
return NewResourceGroup(fmt.Sprintf("com.cloudflare.api.account.zone.%s", zone.ID))
}

// NewResourceGroupForAccount takes an existing zone and provides a resource group
// to be used within a Policy that allows access to that account
// to be used within a Policy that allows access to that account.
func NewResourceGroupForAccount(account Account) ResourceGroup {
return NewResourceGroup(fmt.Sprintf("com.cloudflare.api.account.%s", account.ID))
}

// NewResourceGroup takes a Cloudflare-formatted key (e.g. 'com.cloudflare.api.%s') and
// returns a resource group to be used within a Policy to allow access to that resource
// returns a resource group to be used within a Policy to allow access to that resource.
func NewResourceGroup(key string) ResourceGroup {
scope := Scope{
Key: key,
Expand Down

0 comments on commit bd5a17f

Please sign in to comment.