gophercloud: github.com/rackspace/gophercloud/openstack/identity/v3/services Index | Files

package services

import "github.com/rackspace/gophercloud/openstack/identity/v3/services"

Package services provides information and interaction with the services API resource for the OpenStack Identity service.

Index

Package Files

doc.go requests.go results.go urls.go

func ExtractServices Uses

func ExtractServices(page pagination.Page) ([]Service, error)

ExtractServices extracts a slice of Services from a Collection acquired from List.

func List Uses

func List(client *gophercloud.ServiceClient, opts ListOpts) pagination.Pager

List enumerates the services available to a specific user.

type CreateResult Uses

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

CreateResult is the deferred result of a Create call.

func Create Uses

func Create(client *gophercloud.ServiceClient, serviceType string) CreateResult

Create adds a new service of the requested type to the catalog.

func (CreateResult) Extract Uses

func (r CreateResult) Extract() (*Service, error)

Extract interprets a GetResult, CreateResult or UpdateResult as a concrete Service. An error is returned if the original call or the extraction failed.

type DeleteResult Uses

type DeleteResult struct {
    gophercloud.ErrResult
}

DeleteResult is the deferred result of an Delete call.

func Delete Uses

func Delete(client *gophercloud.ServiceClient, serviceID string) DeleteResult

Delete removes an existing service. It either deletes all associated endpoints, or fails until all endpoints are deleted.

type GetResult Uses

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

GetResult is the deferred result of a Get call.

func Get Uses

func Get(client *gophercloud.ServiceClient, serviceID string) GetResult

Get returns additional information about a service, given its ID.

func (GetResult) Extract Uses

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

Extract interprets a GetResult, CreateResult or UpdateResult as a concrete Service. An error is returned if the original call or the extraction failed.

type ListOpts Uses

type ListOpts struct {
    ServiceType string `q:"type"`
    PerPage     int    `q:"perPage"`
    Page        int    `q:"page"`
}

ListOpts allows you to query the List method.

type Service Uses

type Service struct {
    Description *string `json:"description,omitempty"`
    ID          string  `json:"id"`
    Name        string  `json:"name"`
    Type        string  `json:"type"`
}

Service is the result of a list or information query.

type ServicePage Uses

type ServicePage struct {
    pagination.LinkedPageBase
}

ServicePage is a single page of Service results.

func (ServicePage) IsEmpty Uses

func (p ServicePage) IsEmpty() (bool, error)

IsEmpty returns true if the page contains no results.

type UpdateResult Uses

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

UpdateResult is the deferred result of an Update call.

func Update Uses

func Update(client *gophercloud.ServiceClient, serviceID string, serviceType string) UpdateResult

Update changes the service type of an existing service.

func (UpdateResult) Extract Uses

func (r UpdateResult) Extract() (*Service, error)

Extract interprets a GetResult, CreateResult or UpdateResult as a concrete Service. An error is returned if the original call or the extraction failed.

Package services imports 3 packages (graph) and is imported by 12 packages. Updated 2016-07-18. Refresh now. Tools for package owners.