env

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, gatewayID, envID string) (err error)

Types

type CreateOpts

type CreateOpts struct {
	GatewayID   string `json:"-"`
	Name        string `json:"name" required:"true"`
	Description string `json:"remark,omitempty"`
}

type EnvPage

type EnvPage struct {
	pagination.NewSinglePageBase
}

type EnvResp

type EnvResp struct {
	ID          string `json:"id"`
	CreateTime  string `json:"create_time"`
	Name        string `json:"name"`
	Description string `json:"remark"`
}

func Create

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

func ExtractEnvs

func ExtractEnvs(r pagination.NewPage) ([]EnvResp, error)

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]EnvResp, error)

func Update

func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*EnvResp, error)

type ListOpts

type ListOpts struct {
	GatewayID string `json:"-"`
	Limit     int    `q:"limit"`
	Name      string `q:"name"`
}

type UpdateOpts

type UpdateOpts struct {
	GatewayID   string `json:"-"`
	EnvID       string `json:"-"`
	Name        string `json:"name" required:"true"`
	Description string `json:"remark,omitempty"`
}

Jump to

Keyboard shortcuts

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