Help us shape the future of Go! Take the 2026 Go Developer Survey

projects

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(client *golangsdk.ServiceClient, id string, opts ActionOpts) error

Types

type ActionOpts

type ActionOpts struct {
	Action string `json:"action" required:"true"`
}

type CreateOpts

type CreateOpts struct {
	Name        string `json:"name" required:"true"`
	Description string `json:"description,omitempty"`
	Type        string `json:"type,omitempty"`
}

type EnterpriseProject

type EnterpriseProject struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
	Status      int    `json:"status"`
	DeleteFlag  bool   `json:"delete_flag"`
	CreatedAt   string `json:"created_at"`
	UpdatedAt   string `json:"updated_at"`
}

EnterpriseProject represents an EPS enterprise project.

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*EnterpriseProject, error)

func Get

func Update

func Update(client *golangsdk.ServiceClient, id string, opts UpdateOpts) (*EnterpriseProject, error)

type ListOpts

type ListOpts struct {
	ID      string `q:"id"`
	Limit   int    `q:"limit"`
	Name    string `q:"name"`
	Offset  int    `q:"offset"`
	SortDir string `q:"sort_dir"`
	SortKey string `q:"sort_key"`
	Status  int    `q:"status"`
}

type ListResult

type ListResult struct {
	EnterpriseProjects []EnterpriseProject `json:"enterprise_projects"`
	TotalCount         int                 `json:"total_count"`
}

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) (*ListResult, error)

type Quota

type Quota struct {
	Type  string `json:"type"`
	Used  int    `json:"used"`
	Quota int    `json:"quota"`
}

type Quotas

type Quotas struct {
	Resources []Quota `json:"resources"`
}

func ListQuotas

func ListQuotas(client *golangsdk.ServiceClient) (*Quotas, error)

type UpdateOpts

type UpdateOpts struct {
	Name        string `json:"name" required:"true"`
	Description string `json:"description,omitempty"`
	Type        string `json:"type,omitempty"`
}

Jump to

Keyboard shortcuts

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