Help us shape the future of Go! Take the 2026 Go Developer Survey

resources

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(client *golangsdk.ServiceClient, projectID string, opts MigrateOpts) error

Types

type FilterOpts

type FilterOpts struct {
	Projects      []string `json:"projects,omitempty"`
	ResourceTypes []string `json:"resource_types"`
	Offset        int      `json:"offset,omitempty"`
	Limit         int      `json:"limit,omitempty"`
	Matches       []Match  `json:"matches,omitempty"`
}

type FilterResult

type FilterResult struct {
	Resources  []Resource      `json:"resources"`
	Errors     []ResourceError `json:"errors"`
	TotalCount int             `json:"total_count"`
}

func Filter

func Filter(client *golangsdk.ServiceClient, projectID string, opts FilterOpts) (*FilterResult, error)

type Match

type Match struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type MigrateOpts

type MigrateOpts struct {
	ProjectID string            `json:"project_id"`
	Resources []MigrateResource `json:"resources"`
}

type MigrateResource

type MigrateResource struct {
	ResourceID   string `json:"resource_id"`
	ResourceType string `json:"resource_type"`
	RegionID     string `json:"region_id,omitempty"`
}

type Resource

type Resource struct {
	ProjectID    string `json:"project_id"`
	ProjectName  string `json:"project_name"`
	ResourceID   string `json:"resource_id"`
	ResourceName string `json:"resource_name"`
	ResourceType string `json:"resource_type"`
}

type ResourceError

type ResourceError struct {
	ProjectID    string `json:"project_id"`
	ErrorCode    string `json:"error_code"`
	ErrorMessage string `json:"error_msg"`
}

Jump to

Keyboard shortcuts

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