group

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: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

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

Types

type CreateOpts

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

type GroupPage

type GroupPage struct {
	pagination.NewSinglePageBase
}

type GroupResp

type GroupResp struct {
	ID               string       `json:"id"`
	Name             string       `json:"name"`
	Status           int          `json:"status"`
	SlDomain         string       `json:"sl_domain"`
	RegisterTime     string       `json:"register_time"`
	UpdateTime       string       `json:"update_time"`
	OnSellStatus     int          `json:"on_sell_status"`
	UrlDomains       []UrlDomains `json:"url_domains"`
	SlDomainsEnabled bool         `json:"sl_domain_access_enabled"`
	SlDomains        []string     `json:"sl_domains"`
	Description      string       `json:"remark"`
	IsDefault        int          `json:"is_default"`
}

func Create

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

func ExtractGateways

func ExtractGateways(r pagination.NewPage) ([]GroupResp, error)

func Get

func Get(client *golangsdk.ServiceClient, gatewayID, groupID string) (*GroupResp, error)

func List

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

func Update

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

type ListOpts

type ListOpts struct {
	GatewayID string `json:"-"`
	// API group ID.
	ID string `q:"id"`
	// API group name.
	Name string `q:"name"`
	// Offset from which the query starts.
	// If the offset is less than 0, the value is automatically converted to 0. Default to 0.
	Offset int `q:"offset"`
	// Number of items displayed on each page. The valid values are range form 1 to 500, default to 20.
	Limit int `q:"limit"`
	// Parameter name for exact matching. Only API group names are supported.
	PreciseSearch string `q:"precise_search"`
}

type UpdateOpts

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

type UrlDomains

type UrlDomains struct {
	DomainId            string `json:"id"`
	DomainName          string `json:"name"`
	CnameStatus         int    `json:"cname_status"`
	SslID               string `json:"ssl_id"`
	SslName             string `json:"ssl_name"`
	MinSslVersion       string `json:"min_ssl_version"`
	VfClientCertEnabled bool   `json:"verified_client_certificate_enabled"`
	HasTrustedCa        bool   `json:"is_has_trusted_root_ca"`
}

Jump to

Keyboard shortcuts

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