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

relations

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListAllOpts

type ListAllOpts struct {
	DomainId   string `json:"-"`
	ResourceId string `json:"-"`
	// Specifies the direction of a resource relationship.
	Direction string `q:"direction"`
	// Specifies the maximum number of resources to return.
	Limit *int `q:"limit"`
	// Specifies the pagination parameter.
	Marker string `q:"marker"`
}

type ResPage

type ResPage struct {
	pagination.NewPageInfoBase
}

type ResourceRelation

type ResourceRelation struct {
	RelationType     string `json:"relation_type"`
	FromResourceType string `json:"from_resource_type"`
	ToResourceType   string `json:"to_resource_type"`
	FromResourceId   string `json:"from_resource_id"`
	ToResourceId     string `json:"to_resource_id"`
}

func ExtractResources

func ExtractResources(r pagination.NewPage) ([]ResourceRelation, error)

func ListRelations

func ListRelations(client *golangsdk.ServiceClient, opts ListAllOpts) ([]ResourceRelation, error)

Jump to

Keyboard shortcuts

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