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

configs

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigParam

type ConfigParam struct {
	Status       string              `json:"status"`
	InstanceID   string              `json:"instance_id"`
	RedisConfigs []ResultRedisConfig `json:"redis_config"`
	ConfigStatus string              `json:"config_status"`
	ConfigTime   string              `json:"config_time"`
}

type ListResult

type ListResult struct {
	golangsdk.Result
}

func List

func List(client *golangsdk.ServiceClient, instanceID string) (r ListResult)

func (ListResult) Extract

func (r ListResult) Extract() (*ConfigParam, error)

type RedisConfig

type RedisConfig struct {
	ParamID    string `json:"param_id" required:"true"`
	ParamName  string `json:"param_name" required:"true"`
	ParamValue string `json:"param_value" required:"true"`
}

type ResultRedisConfig

type ResultRedisConfig struct {
	Description  string `json:"description"`
	ParamID      string `json:"param_id"`
	ParamName    string `json:"param_name"`
	ParamValue   string `json:"param_value"`
	DefaultValue string `json:"default_value"`
	ValueType    string `json:"value_type"`
	ValueRange   string `json:"value_range"`
}

type UpdateOpts

type UpdateOpts struct {
	RedisConfigs []RedisConfig `json:"redis_config" required:"true"`
}

func (UpdateOpts) ToConfigUpdateMap

func (opts UpdateOpts) ToConfigUpdateMap() (map[string]interface{}, error)

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToConfigUpdateMap() (map[string]interface{}, error)
}

type UpdateResult

type UpdateResult struct {
	golangsdk.ErrResult
}

func Update

func Update(client *golangsdk.ServiceClient, instanceID string, opts UpdateOptsBuilder) (r UpdateResult)

Jump to

Keyboard shortcuts

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