resource

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListerNames

func GetListerNames() []string

func GetListerNamesV2

func GetListerNamesV2() []string

func GetListersNameForScope

func GetListersNameForScope(scope Scope) []string

func GetListersTS

func GetListersTS()

func Register

func Register(name string, lister ResourceLister)

func RegisterV2

func RegisterV2(r Registration)

Types

type FeatureFlagGetter

type FeatureFlagGetter interface {
	Resource
	FeatureFlags(config.FeatureFlags)
}

type Filter

type Filter interface {
	Resource
	Filter() error
}

type LegacyStringer

type LegacyStringer interface {
	Resource
	String() string
}

type ListerOpts

type ListerOpts struct {
	Authorizers    azure.Authorizers
	TenantId       string
	SubscriptionId string
	ResourceGroup  string
}

type Registration

type Registration struct {
	Name      string
	Scope     Scope
	Lister    ResourceListerV2
	DependsOn []string
}

type Registrations

type Registrations map[string]Registration

type Resource

type Resource interface {
	Remove() error
}

type ResourceLister

type ResourceLister func(authorizers azure.Authorizers, subscriptionId, resourceGroup string) ([]Resource, error)

func GetLister

func GetLister(name string) ResourceLister

type ResourceListerV2

type ResourceListerV2 func(lister ListerOpts) ([]Resource, error)

func GetListerV2

func GetListerV2(name string) ResourceListerV2

type ResourceListers

type ResourceListers map[string]ResourceLister

func GetListers

func GetListers() ResourceListers

type ResourceListersV2

type ResourceListersV2 map[string]ResourceListerV2

func GetListersForScope

func GetListersForScope(scope Scope) (listers ResourceListersV2)

func GetListersV2

func GetListersV2() (listers ResourceListersV2)

type ResourcePropertyGetter

type ResourcePropertyGetter interface {
	Resource
	Properties() types.Properties
}

type Scope

type Scope string
const (
	Tenant        Scope = "tenant"
	Subscription  Scope = "subscription"
	ResourceGroup Scope = "resource-group"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL