extensions

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MPL-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractExtensionsInto

func ExtractExtensionsInto(r pagination.Page, v interface{}) error

Types

type Extension

type Extension struct {
	Name        string                  `json:"name"`
	Alias       string                  `json:"alias"`
	Links       []string                `json:"links"`
	Description string                  `json:"description"`
	Updated     gcorecloud.JSONRFC3339Z `json:"updated"`
}

Extension represents a neutron extension.

func ExtractExtensions

func ExtractExtensions(r pagination.Page) ([]Extension, error)

ExtractExtension accepts a Page struct, specifically a ExtensionPage struct, and extracts the elements into a slice of Extension structs. In other words, a generic collection is mapped into a relevant slice.

func ListAll

func ListAll(c *gcorecloud.ServiceClient) ([]Extension, error)

type ExtensionPage

type ExtensionPage struct {
	pagination.LinkedPageBase
}

ExtensionPage is the page returned by a pager when traversing over a collection of networks.

func (ExtensionPage) IsEmpty

func (r ExtensionPage) IsEmpty() (bool, error)

IsEmpty checks whether a ExtensionPage struct is empty.

func (ExtensionPage) NextPageURL

func (r ExtensionPage) NextPageURL() (string, error)

NextPageURL is invoked when a paginated collection of networks has reached the end of a page and the pager seeks to traverse over a new one. In order to do this, it needs to construct the next page's URL.

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

GetResult represents the result of a get operation. Call its Extract method to interpret it as a Extension.

func Get

func Get(c *gcorecloud.ServiceClient, alias string) (r GetResult)

Get retrieves a specific extension based on its alias.

func (GetResult) Extract

func (r GetResult) Extract() (*Extension, error)

Extract is a function that accepts a result and extracts a network resource.

func (GetResult) ExtractInto

func (r GetResult) ExtractInto(v interface{}) error

Directories

Path Synopsis
extensions unit tests
extensions unit tests

Jump to

Keyboard shortcuts

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