cbs

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPlanArtifacts added in v0.10.0

func GetPlanArtifacts(ctx context.Context, planName string) (map[string]*appcatalog.Artifact, error)

func GetProductSummary added in v0.10.0

func GetProductSummary(ctx context.Context) (appcatalog.SearchClientGetResponse, error)

func GetResourceListFromUiDefinitionUrl added in v0.10.0

func GetResourceListFromUiDefinitionUrl(url string) ([]string, error)

func GetResourcesFromTemplateJson added in v0.10.0

func GetResourcesFromTemplateJson(data []byte) ([]string, error)

Retrieve resource list from Azure createUiDefinition artifact

func Provider

func Provider() *schema.Provider

func SetResourceTags added in v0.10.0

func SetResourceTags(resourceType string, resourceTagList []interface{}, resources []string, tagsMap *map[string]interface{}) error

Types

type CbsService

type CbsService struct {
	AWSClient   cloud.AWSClientAPI
	AzureClient cloud.AzureClientAPI
	// contains filtered or unexported fields
}

type JSONCreateUiDefinitionTemplate added in v0.10.0

type JSONCreateUiDefinitionTemplate struct {
	Parameters struct {
		Steps []struct {
			Name     string
			Elements []struct {
				Name      string
				Resources []string
			}
		}
	}
}

type JSONDefaultTemplate

type JSONDefaultTemplate struct {
	Resources []JSONDefaultTemplateResources
}

type JSONDefaultTemplateResources

type JSONDefaultTemplateResources struct {
	Plan Plan
}

type Plan

type Plan struct {
	Name      string
	Product   string
	Publisher string
	Version   string
}

func GetPlanFromTemplateJson added in v0.10.0

func GetPlanFromTemplateJson(data []byte) (*Plan, error)

Retrieve a plan information from Azure DefaultTemplate artifact

type PlanByVersion

type PlanByVersion []VersionedPlan

func (PlanByVersion) Len

func (a PlanByVersion) Len() int

func (PlanByVersion) Less

func (a PlanByVersion) Less(i, j int) bool

func (PlanByVersion) Swap

func (a PlanByVersion) Swap(i, j int)

type VersionedPlan

type VersionedPlan struct {
	Version version.Version
	Plan    Plan
}

func QueryMarketplaceForPlans added in v0.10.0

func QueryMarketplaceForPlans(ctx context.Context) ([]VersionedPlan, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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