group

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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, 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"`
	SlDomains    []string     `json:"sl_domains"`
	Description  string       `json:"remark"`
}

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 {
	Limit        int    `q:"limit"`
	GatewayID    string `json:"-"`
	InstanceName string `q:"instance_name"`
	Status       string `q:"status"`
}

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