projects

package
v0.0.0-...-0fce7b6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListProjectAPI

type ListProjectAPI struct {
	Path     string
	Method   string
	Header   map[string]string
	Request  ListProjectRequest
	Response ListProjectResponse
}

type ListProjectRequest

type ListProjectRequest struct {
}

type ListProjectResponse

type ListProjectResponse struct {
	Links struct {
		Next     interface{} `json:"next"`
		Previous interface{} `json:"previous"`
		Self     string      `json:"self"`
	} `json:"links"`
	Projects []struct {
		IsDomain bool   `json:"is_domain"`
		DomainID string `json:"domain_id"`
		Enabled  bool   `json:"enabled"`
		ID       string `json:"id"`
		Links    struct {
			Self string `json:"self"`
		} `json:"links"`
		Name     string        `json:"name"`
		ParentID interface{}   `json:"parent_id"`
		Tags     []interface{} `json:"tags"`
	} `json:"projects"`
}

type Project

type Project struct {
	// IsDomain indicates whether the project is a domain.
	IsDomain bool `json:"is_domain"`

	// DomainID is the domain ID the project belongs to.
	DomainID string `json:"domain_id"`

	// Enabled is whether or not the project is enabled.
	Enabled bool `json:"enabled"`

	// ID is the unique ID of the project.
	ID string `json:"id"`

	// Name is the name of the project.
	Name string `json:"name"`
}

Project represents an OpenStack Identity Project.

func List

func List(client *v3.IdentityClient) ([]Project, error)

Jump to

Keyboard shortcuts

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