template

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, configId string) error

func Update

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

Types

type ApplyOpts

type ApplyOpts struct {
	ConfigId    string   `json:"-"`
	InstanceIds []string `json:"instance_ids" required:"true"`
}

type ApplyResp

type ApplyResp struct {
	JobId   string `json:"job_id"`
	Success bool   `json:"success"`
}

func Apply

func Apply(client *golangsdk.ServiceClient, opts ApplyOpts) (*ApplyResp, error)

type Configuration

type Configuration struct {
	Id                   string `json:"id"`
	Name                 string `json:"name"`
	Description          string `json:"description"`
	DataStoreVersionName string `json:"datastore_version_name"`
	DataStoreName        string `json:"datastore_name"`
	Created              string `json:"created"`
	Updated              string `json:"updated"`
	Mode                 string `json:"mode"`
	UserDefined          bool   `json:"user_defined"`
}

func ExtractConfigurations

func ExtractConfigurations(r pagination.NewPage) ([]Configuration, error)

func List

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

type ConfigurationPage

type ConfigurationPage struct {
	pagination.NewSinglePageBase
}

type ConfigurationResult

type ConfigurationResult struct {
	Id                   string `json:"id"`
	Name                 string `json:"name"`
	DataStoreVersionName string `json:"datastore_version_name"`
	DataStoreName        string `json:"datastore_name"`
	Description          string `json:"description"`
	Created              string `json:"created"`
	Updated              string `json:"updated"`
}

func Create

type CreateOpts

type CreateOpts struct {
	Name        string            `json:"name" required:"true"`
	Description string            `json:"description,omitempty"`
	Values      map[string]string `json:"values,omitempty"`
	DataStore   DataStoreOpt      `json:"datastore" required:"true"`
}

type DataStoreOpt

type DataStoreOpt struct {
	Type    string `json:"type" required:"true"`
	Version string `json:"version" required:"true"`
}

type GetResponse

type GetResponse struct {
	Id                      string                    `json:"id"`
	Name                    string                    `json:"name"`
	Description             string                    `json:"description"`
	DataStoreVersionName    string                    `json:"datastore_version_name"`
	DataStoreName           string                    `json:"datastore_name"`
	Created                 string                    `json:"created"`
	Updated                 string                    `json:"updated"`
	ConfigurationParameters []InstanceParameterResult `json:"configuration_parameters"`
}

func Get

func Get(client *golangsdk.ServiceClient, configId string) (*GetResponse, error)

type InstanceParameterResult

type InstanceParameterResult struct {
	Name            string `json:"name"`
	Value           string `json:"value"`
	RestartRequired bool   `json:"restart_required"`
	Readonly        bool   `json:"readonly"`
	ValueRange      string `json:"value_range"`
	Type            string `json:"type"`
	Description     string `json:"description"`
}

type ListOpts

type ListOpts struct {
	Offset int `q:"offset"`
	Limit  int `q:"limit"`
}

type ParameterResponse

type ParameterResponse struct {
	DataStoreVersionName    string                    `json:"datastore_version_name"`
	DataStoreName           string                    `json:"datastore_name"`
	Created                 string                    `json:"created"`
	Updated                 string                    `json:"updated"`
	Id                      string                    `json:"id"`
	Mode                    string                    `json:"mode"`
	ConfigurationParameters []InstanceParameterResult `json:"configuration_parameters"`
}

func GetInstanceParameters

func GetInstanceParameters(client *golangsdk.ServiceClient, instanceId string) (*ParameterResponse, error)

type UpdateOpts

type UpdateOpts struct {
	ConfigId    string            `json:"-"`
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Values      map[string]string `json:"values,omitempty"`
}

type UpdateParametersOpts

type UpdateParametersOpts struct {
	InstanceId string            `json:"-"`
	Values     map[string]string `json:"values" required:"true"`
}

type UpdateParametersResp

type UpdateParametersResp struct {
	JobId           string `json:"job_id"`
	RestartRequired bool   `json:"restart_required"`
}

func UpdateInstanceParameters

func UpdateInstanceParameters(client *golangsdk.ServiceClient, opts UpdateParametersOpts) (*UpdateParametersResp, error)

Jump to

Keyboard shortcuts

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