Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶ added in v0.65.0
func NewClient(rg resources.GroupsClient, sg network.ApplicationSecurityGroupsClient) client
Types ¶
type AppSecurityGroup ¶ added in v0.65.0
type AppSecurityGroup struct {
// contains filtered or unexported fields
}
func NewAppSecurityGroup ¶ added in v0.65.0
func NewAppSecurityGroup(client appSecurityGroupsClient, rgName, name string) AppSecurityGroup
AppSecurityGroup represents an Azure application security group.
func (AppSecurityGroup) Delete ¶ added in v0.65.0
func (g AppSecurityGroup) Delete() error
Delete deletes an Azure application security group.
func (AppSecurityGroup) Name ¶ added in v0.65.0
func (g AppSecurityGroup) Name() string
func (AppSecurityGroup) Type ¶ added in v0.65.0
func (g AppSecurityGroup) Type() string
type AppSecurityGroups ¶ added in v0.65.0
type AppSecurityGroups struct {
// contains filtered or unexported fields
}
func NewAppSecurityGroups ¶ added in v0.65.0
func NewAppSecurityGroups(client appSecurityGroupsClient, rgName string, logger logger) AppSecurityGroups
func (AppSecurityGroups) Type ¶ added in v0.65.0
func (g AppSecurityGroups) Type() string
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
type Leftovers ¶
type Leftovers struct {
// contains filtered or unexported fields
}
func NewLeftovers ¶
func NewLeftovers(logger logger, clientId, clientSecret, subscriptionId, tenantId string) (Leftovers, error)
NewLeftovers returns a new Leftovers for Azure that can be used to list resources, list types, or delete resources for the provided account. It returns an error if the credentials provided are invalid.
func (Leftovers) Delete ¶
Delete will collect all resources that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected.
func (Leftovers) DeleteByType ¶ added in v0.65.0
DeleteByType will collect all resources of the provied type that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected. TODO: rType isn't used here? Is this an error? @ciriarte
func (Leftovers) List ¶ added in v0.16.0
List will print all of the resources that match the provided filter.
func (Leftovers) ListByType ¶ added in v0.65.0
ListByType defaults to List as there is only one resource type.