services

package
v0.0.0-...-cb71f35 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Services is a slice of Services which should be imported
	Services []Service `hcl:"service,block"`
}

func LoadFromFile

func LoadFromFile(filePath string) (*Config, error)

LoadFromFile loads the given Config from the specified filePath

type Service

type Service struct {
	// Directory is the name of the Swagger directory for this Service (e.g. appconfiguration)
	Directory string `hcl:"directory,label"`

	// Name is the normalized (title-case, no spaces etc) name for this Service (e.g. AppConfiguration)
	Name string `hcl:"name"`

	// Available is a list of the Versions for this Service which should be imported
	Available []string `hcl:"available"`

	// Ignore is a list of Versions which should be Ignored for this Service
	// A version is automatically ignored if it's not defined in
	Ignore *[]string `hcl:"ignore"`

	// ResourceProvider is the name of the Resource Provider for this Service.
	// When specified, this is used to filter the Operations in the Service to only operations
	// targeting this Resource Provider.
	//
	// As a general rule - this should be left blank, at the time of writing this is only applicable
	// to the Network service, which includes operations from both the Compute and Networking Resource
	// Providers, which causes issues with ID parsing, hence this filter option to filter Compute operations.
	ResourceProvider *string `hcl:"resource_provider"`
}

Jump to

Keyboard shortcuts

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