resource

package
v0.0.0-...-371bc73 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlavorExtraSpecsReader

type FlavorExtraSpecsReader struct {
	FlavorID string
}

FlavorExtraSpecsReader structure for a Reader which read an array of flavor extra specs.

func (*FlavorExtraSpecsReader) ReadResource

func (fesr *FlavorExtraSpecsReader) ReadResource(client *gophercloud.ServiceClient) result.Result

ReadResource reads an array of flavor extra specs.

type FlavorReader

type FlavorReader struct {
}

FlavorReader structure for a Reader which read an array of flavors.

func (*FlavorReader) ReadResources

func (ur *FlavorReader) ReadResources(client *gophercloud.ServiceClient) pagination.Pager

ReadResources reads an array of users.

type ProjectReader

type ProjectReader struct {
}

ProjectReader structure for a Reader which reads an array of projects.

func (*ProjectReader) ReadResources

func (pr *ProjectReader) ReadResources(client *gophercloud.ServiceClient) pagination.Pager

ReadResources reads an array of projects.

type Resource

type Resource interface {
	UnmarshalJSON([]byte) error // the only mutual function for server, user, image
}

Resource interface represents resource from Openstack.

type UserReader

type UserReader struct {
	ID string
}

UserReader structure for a Reader which read a user by ID.

func (*UserReader) ReadResource

func (ur *UserReader) ReadResource(client *gophercloud.ServiceClient) result.Result

ReadResource reads a user by ID.

type UsersReader

type UsersReader struct {
}

UsersReader structure for a Reader which read an array of users.

func (*UsersReader) ReadResources

func (ur *UsersReader) ReadResources(client *gophercloud.ServiceClient) pagination.Pager

ReadResources reads an array of users.

Directories

Path Synopsis
gpu

Jump to

Keyboard shortcuts

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