env_vars

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, envVarID string) (err error)

Types

type CreateOpts

type CreateOpts struct {
	GatewayID     string `json:"-"`
	GroupID       string `json:"group_id" required:"true"`
	EnvID         string `json:"env_id" required:"true"`
	VariableName  string `json:"variable_name" required:"true"`
	VariableValue string `json:"variable_value" required:"true"`
}

type EnvPage

type EnvPage struct {
	pagination.NewSinglePageBase
}

type EnvVarsResp

type EnvVarsResp struct {
	EnvID         string `json:"env_id"`
	GroupID       string `json:"group_id"`
	ID            string `json:"id"`
	VariableName  string `json:"variable_name"`
	VariableValue string `json:"variable_value"`
}

func Create

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

func ExtractEnvs

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

func Get

func Get(client *golangsdk.ServiceClient, gatewayID, envVarID string) (*EnvVarsResp, error)

func List

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

type ListOpts

type ListOpts struct {
	GatewayID     string `json:"-"`
	GroupID       string `q:"group_id" required:"true"`
	EnvID         string `q:"env_id"`
	VariableName  string `q:"variable_name"`
	PreciseSearch string `q:"precise_search"`
}

Jump to

Keyboard shortcuts

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