leftovers: github.com/genevievelesperance/leftovers/azure Index | Files | Directories

package azure

import "github.com/genevievelesperance/leftovers/azure"

Index

Package Files

app_security_group.go app_security_groups.go client.go group.go groups.go leftovers.go logger.go

func NewClient Uses

func NewClient(rg resources.GroupsClient, sg network.ApplicationSecurityGroupsClient) client

type AppSecurityGroup Uses

type AppSecurityGroup struct {
    // contains filtered or unexported fields
}

func NewAppSecurityGroup Uses

func NewAppSecurityGroup(client appSecurityGroupsClient, rgName, name string) AppSecurityGroup

AppSecurityGroup represents an Azure application security group.

func (AppSecurityGroup) Delete Uses

func (g AppSecurityGroup) Delete() error

Delete deletes an Azure application security group.

func (AppSecurityGroup) Name Uses

func (g AppSecurityGroup) Name() string

func (AppSecurityGroup) Type Uses

func (g AppSecurityGroup) Type() string

type AppSecurityGroups Uses

type AppSecurityGroups struct {
    // contains filtered or unexported fields
}

func NewAppSecurityGroups Uses

func NewAppSecurityGroups(client appSecurityGroupsClient, rgName string, logger logger) AppSecurityGroups

func (AppSecurityGroups) List Uses

func (g AppSecurityGroups) List(filter string) ([]common.Deletable, error)

func (AppSecurityGroups) Type Uses

func (g AppSecurityGroups) Type() string

type Group Uses

type Group struct {
    // contains filtered or unexported fields
}

func NewGroup Uses

func NewGroup(client groupsClient, name string) Group

Group represents an Azure resource group.

func (Group) Delete Uses

func (g Group) Delete() error

Delete deletes an Azure resource group and all other Azure resources in the resource group.

func (Group) Name Uses

func (g Group) Name() string

func (Group) Type Uses

func (g Group) Type() string

type Groups Uses

type Groups struct {
    // contains filtered or unexported fields
}

func NewGroups Uses

func NewGroups(client groupsClient, logger logger) Groups

func (Groups) List Uses

func (g Groups) List(filter string) ([]common.Deletable, error)

func (Groups) Type Uses

func (g Groups) Type() string

type Leftovers Uses

type Leftovers struct {
    // contains filtered or unexported fields
}

func NewLeftovers Uses

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 Uses

func (l Leftovers) Delete(filter string) error

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 Uses

func (l Leftovers) DeleteByType(filter, rType string) error

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.

func (Leftovers) List Uses

func (l Leftovers) List(filter string)

List will print all of the resources that match the provided filter.

func (Leftovers) ListByType Uses

func (l Leftovers) ListByType(filter, rType string)

ListByType defaults to List as there is only one resource type.

func (Leftovers) Types Uses

func (l Leftovers) Types()

Types will print all the resource types that can be deleted on this IaaS.

Directories

PathSynopsis
fakes

Package azure imports 12 packages (graph). Updated 2019-11-01. Refresh now. Tools for package owners.