sdk

package
v0.0.0-...-28c0fd5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateResponse

type CertificateResponse struct {
	Certificate *api.Certificate `json:"certificate"`
}

type Certificates

type Certificates struct {
	*Client
}

func (*Certificates) Create

func (*Certificates) List

func (c *Certificates) List() (CertificatesList, error)

type CertificatesList

type CertificatesList struct {
	Certificates []api.Certificate `json:"certificates"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(endpoint string) *Client

func (*Client) Certificates

func (c *Client) Certificates() *Certificates

func (*Client) Listeners

func (c *Client) Listeners() *Listeners

func (*Client) TargetGroups

func (c *Client) TargetGroups() *TargetGroups

type CreateCertificateInput

type CreateCertificateInput struct {
	Certificate []byte `json:"cert"`
	Key         []byte `json:"key"`
	Name        string `json:"name"`
}

type CreateListenerInput

type CreateListenerInput struct {
	Name      string `json:"name" flag:"name"`
	IpAddress string `json:"ip_address" flag:"ip-address"`
	Port      uint16 `json:"port" flag:"port"`
	Type      string `json:"type,omitempty" flag:"type"`
	Protocol  string `json:"protocol,omitempty" flag:"protocol,omitempty"`
}

type CreateListenerRuleInput

type CreateListenerRuleInput struct {
	ListenerId string     `json:"-"`
	Priority   uint16     `json:"priority,omitempty"`
	Action     api.Action `json:"action"`
}

type ListenerResponse

type ListenerResponse struct {
	Listener api.Listener `json:"listener"`
}

type Listeners

type Listeners struct {
	*Client
}

func (*Listeners) AddRule

func (l *Listeners) AddRule(listenerId string, input *CreateListenerRuleInput) (ListenerResponse, error)

func (*Listeners) Create

func (l *Listeners) Create(input *CreateListenerInput) (ListenerResponse, error)

func (*Listeners) Delete

func (l *Listeners) Delete(listenerId string) error

func (*Listeners) Get

func (l *Listeners) Get(listenerId string) (ListenerResponse, error)

func (*Listeners) List

func (l *Listeners) List() (ListenersList, error)

type ListenersList

type ListenersList struct {
	Listeners []api.Listener `json:"listeners"`
}

type TargetGroupAttachmentInput

type TargetGroupAttachmentInput struct {
	TargetGroupId string `json:"-"`
	IpAddress     string `json:"ip_address"`
	Port          uint16 `json:"port"`
}

type TargetGroupResponse

type TargetGroupResponse struct {
	TargetGroup api.TargetGroup `json:"target_group"`
}

type TargetGroups

type TargetGroups struct {
	*Client
}

func (*TargetGroups) AddAttachment

func (*TargetGroups) List

func (t *TargetGroups) List() (TargetGroupsList, error)

func (*TargetGroups) RemoveAttachment

func (t *TargetGroups) RemoveAttachment(targetGroupId string, attachmentId string) error

type TargetGroupsList

type TargetGroupsList struct {
	TargetGroups []api.TargetGroup `json:"target_groups"`
}

Jump to

Keyboard shortcuts

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