projects

package
v0.0.0-...-bc9d8c1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List returns a Pager which allows you to iterate over a collection of projects.

Types

type CBRMasterdata

type CBRMasterdata struct {
	CostObjectName                  string                 `json:"costObjectName,omitempty"`
	CostObjectType                  string                 `json:"costObjectType,omitempty"`
	CostObjectInherited             bool                   `json:"costObjectInherited,omitempty"`
	BusinessCriticality             string                 `json:"businessCriticality,omitempty"`
	RevenueRelevance                string                 `json:"revenueRelevance,omitempty"`
	NumberOfEndusers                int                    `json:"numberOfEndusers,omitempty"`
	PrimaryContactUserID            string                 `json:"primaryContactUserID,omitempty"`
	PrimaryContactEmail             string                 `json:"primaryContactEmail,omitempty"`
	OperatorUserID                  string                 `json:"operatorUserID,omitempty"`
	OperatorEmail                   string                 `json:"operatorEmail,omitempty"`
	InventoryRoleUserID             string                 `json:"inventoryRoleUserID,omitempty"`
	InventoryRoleEmail              string                 `json:"inventoryRoleEmail,omitempty"`
	InfrastructureCoordinatorUserID string                 `json:"infrastructureCoordinatorUserID,omitempty"`
	InfrastructureCoordinatorEmail  string                 `json:"infrastructureCoordinatorEmail,omitempty"`
	ExternalCertifications          ExternalCertifications `json:"externalCertifications,omitempty"`
	GPUEnabled                      bool                   `json:"gpuEnabled,omitempty"`
	ContainsPIIDPPHR                bool                   `json:"containsPIIDPPHR,omitempty"`
	ContainsExternalCustomerData    bool                   `json:"containsExternalCustomerData,omitempty"`
}

CBRMasterdata represents the CBR masterdata of a Keystone project.

type ExternalCertifications

type ExternalCertifications struct {
	ISO  bool `json:"ISO,omitempty"`
	PCI  bool `json:"PCI,omitempty"`
	SOC1 bool `json:"SOC1,omitempty"`
	SOC2 bool `json:"SOC2,omitempty"`
	C5   bool `json:"C5,omitempty"`
	SOX  bool `json:"SOX,omitempty"`
}

ExternalCertifications represents the external certifications of a Keystone project.

type GetResult

type GetResult struct {
	gophercloud.Result
}

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

func Get

func Get(c *gophercloud.ServiceClient, id string) (r GetResult)

Get retrieves a specific project based on its unique ID.

func (GetResult) Extract

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

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

func (GetResult) ExtractInto

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

type ListOpts

type ListOpts struct {
	// Limit will limit the number of results returned per page.
	Limit int `q:"limit"`
	// UUIDs will only return projects with the specified UUIDs.
	UUIDs []string `q:"uuids"`
}

ListOpts is a structure that holds options for listing project masterdata.

func (ListOpts) ToProjectListQuery

func (opts ListOpts) ToProjectListQuery() (string, error)

ToProjectListQuery formats a ListOpts into a query string.

type ListOptsBuilder

type ListOptsBuilder interface {
	ToProjectListQuery() (string, error)
}

ListOptsBuilder allows extensions to add additional parameters to the List request.

type Project

type Project struct {
	Name          string        `json:"name,omitempty"`
	UUID          string        `json:"uuid"`
	Description   string        `json:"description,omitempty"`
	DomainName    string        `json:"domainName,omitempty"`
	DomainUUID    string        `json:"domainUUID,omitempty"`
	CBRMasterdata CBRMasterdata `json:"cbrMasterdata,omitempty"`
	Users         []User        `json:"users"`
}

Project represents a Keystone project.

func Extract

func Extract(r pagination.Page) ([]Project, error)

Extract accepts a Page struct, specifically an v1.CommonPage struct, and extracts the elements into a slice of Projects structs.

type User

type User struct {
	UUID        string `json:"uuid"`
	Name        string `json:"name,omitempty"`
	Email       string `json:"email,omitempty"`
	Description string `json:"description,omitempty"`
}

User represents a Keystone user.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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