proxylb

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	Name           string `validate:"required"`
	Description    string `validate:"min=0,max=512"`
	Tags           types.Tags
	IconID         types.ID
	Plan           types.EProxyLBPlan `validate:"required,oneof=100 500 1000 5000 10000 50000 100000"`
	HealthCheck    *sacloud.ProxyLBHealthCheck
	SorryServer    *sacloud.ProxyLBSorryServer
	BindPorts      []*sacloud.ProxyLBBindPort
	Servers        []*sacloud.ProxyLBServer
	Rules          []*sacloud.ProxyLBRule
	LetsEncrypt    *sacloud.ProxyLBACMESetting
	StickySession  *sacloud.ProxyLBStickySession
	Timeout        *sacloud.ProxyLBTimeout
	UseVIPFailover bool
	Region         types.EProxyLBRegion
}

func (*CreateRequest) ToRequestParameter

func (req *CreateRequest) ToRequestParameter() (*sacloud.ProxyLBCreateRequest, error)

func (*CreateRequest) Validate

func (req *CreateRequest) Validate() error

type DeleteCertificatesRequest

type DeleteCertificatesRequest struct {
	ID types.ID `request:"-" validate:"required"`
}

func (*DeleteCertificatesRequest) Validate

func (req *DeleteCertificatesRequest) Validate() error

type DeleteRequest

type DeleteRequest struct {
	ID types.ID `request:"-" validate:"required"`

	FailIfNotFound bool `request:"-"`
}

func (*DeleteRequest) Validate

func (req *DeleteRequest) Validate() error

type FindRequest

type FindRequest struct {
	Names []string `request:"-"`
	Tags  []string `request:"-"`

	Sort  search.SortKeys
	Count int
	From  int
}

func (*FindRequest) ToRequestParameter

func (req *FindRequest) ToRequestParameter() (*sacloud.FindCondition, error)

func (*FindRequest) Validate

func (req *FindRequest) Validate() error

type GetCertificatesRequest

type GetCertificatesRequest struct {
	ID types.ID `request:"-" validate:"required"`
}

func (*GetCertificatesRequest) Validate

func (req *GetCertificatesRequest) Validate() error

type HealthStatusRequest

type HealthStatusRequest struct {
	ID types.ID `request:"-" validate:"required"`
}

func (*HealthStatusRequest) Validate

func (req *HealthStatusRequest) Validate() error

type MonitorConnectionRequest

type MonitorConnectionRequest struct {
	ID types.ID `request:"-" validate:"required"`

	Start time.Time
	End   time.Time
}

func (*MonitorConnectionRequest) Validate

func (req *MonitorConnectionRequest) Validate() error

type ReadRequest

type ReadRequest struct {
	ID types.ID `request:"-" validate:"required"`
}

func (*ReadRequest) Validate

func (req *ReadRequest) Validate() error

type RenewLetsEncryptCertRequest

type RenewLetsEncryptCertRequest struct {
	ID types.ID `request:"-" validate:"required"`
}

func (*RenewLetsEncryptCertRequest) Validate

func (req *RenewLetsEncryptCertRequest) Validate() error

type Service

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

Service provides a high-level API of for ProxyLB

func New

func New(caller sacloud.APICaller) *Service

New returns new service instance of ProxyLB

func (*Service) Create

func (s *Service) Create(req *CreateRequest) (*sacloud.ProxyLB, error)

func (*Service) CreateWithContext

func (s *Service) CreateWithContext(ctx context.Context, req *CreateRequest) (*sacloud.ProxyLB, error)

func (*Service) Delete

func (s *Service) Delete(req *DeleteRequest) error

func (*Service) DeleteCertificates

func (s *Service) DeleteCertificates(req *DeleteCertificatesRequest) error

func (*Service) DeleteCertificatesWithContext

func (s *Service) DeleteCertificatesWithContext(ctx context.Context, req *DeleteCertificatesRequest) error

func (*Service) DeleteWithContext

func (s *Service) DeleteWithContext(ctx context.Context, req *DeleteRequest) error

func (*Service) Find

func (s *Service) Find(req *FindRequest) ([]*sacloud.ProxyLB, error)

func (*Service) FindWithContext

func (s *Service) FindWithContext(ctx context.Context, req *FindRequest) ([]*sacloud.ProxyLB, error)

func (*Service) GetCertificates

func (s *Service) GetCertificates(req *GetCertificatesRequest) (*sacloud.ProxyLBCertificates, error)

func (*Service) GetCertificatesWithContext

func (s *Service) GetCertificatesWithContext(ctx context.Context, req *GetCertificatesRequest) (*sacloud.ProxyLBCertificates, error)

func (*Service) HealthStatus

func (s *Service) HealthStatus(req *HealthStatusRequest) (*sacloud.ProxyLBHealth, error)

func (*Service) HealthStatusWithContext

func (s *Service) HealthStatusWithContext(ctx context.Context, req *HealthStatusRequest) (*sacloud.ProxyLBHealth, error)

func (*Service) MonitorConnection

func (s *Service) MonitorConnection(req *MonitorConnectionRequest) ([]*sacloud.MonitorConnectionValue, error)

func (*Service) MonitorConnectionWithContext

func (s *Service) MonitorConnectionWithContext(ctx context.Context, req *MonitorConnectionRequest) ([]*sacloud.MonitorConnectionValue, error)

func (*Service) Read

func (s *Service) Read(req *ReadRequest) (*sacloud.ProxyLB, error)

func (*Service) ReadWithContext

func (s *Service) ReadWithContext(ctx context.Context, req *ReadRequest) (*sacloud.ProxyLB, error)

func (*Service) RenewLetsEncryptCert

func (s *Service) RenewLetsEncryptCert(req *RenewLetsEncryptCertRequest) error

func (*Service) RenewLetsEncryptCertWithContext

func (s *Service) RenewLetsEncryptCertWithContext(ctx context.Context, req *RenewLetsEncryptCertRequest) error

func (*Service) SetCertificates

func (s *Service) SetCertificates(req *SetCertificatesRequest) error

func (*Service) SetCertificatesWithContext

func (s *Service) SetCertificatesWithContext(ctx context.Context, req *SetCertificatesRequest) error

func (*Service) Update

func (s *Service) Update(req *UpdateRequest) (*sacloud.ProxyLB, error)

func (*Service) UpdateWithContext

func (s *Service) UpdateWithContext(ctx context.Context, req *UpdateRequest) (*sacloud.ProxyLB, error)

type SetCertificatesRequest

type SetCertificatesRequest struct {
	ID types.ID `request:"-" validate:"required"`

	PrimaryCerts    *sacloud.ProxyLBPrimaryCert
	AdditionalCerts []*sacloud.ProxyLBAdditionalCert
}

func (*SetCertificatesRequest) Validate

func (req *SetCertificatesRequest) Validate() error

type UpdateRequest

type UpdateRequest struct {
	ID types.ID `request:"-" validate:"required"`

	Name          *string                       `request:",omitempty" validate:"omitempty,min=1"`
	Description   *string                       `request:",omitempty" validate:"omitempty,min=1,max=512"`
	Tags          *types.Tags                   `request:",omitempty"`
	IconID        *types.ID                     `request:",omitempty"`
	Plan          *types.EProxyLBPlan           `request:",omitempty" validate:"omitempty,oneof=100 500 1000 5000 10000 50000 100000"`
	HealthCheck   *sacloud.ProxyLBHealthCheck   `request:",omitempty"`
	SorryServer   *sacloud.ProxyLBSorryServer   `request:",omitempty"`
	BindPorts     *[]*sacloud.ProxyLBBindPort   `request:",omitempty"`
	Servers       *[]*sacloud.ProxyLBServer     `request:",omitempty"`
	Rules         *[]*sacloud.ProxyLBRule       `request:",omitempty"`
	LetsEncrypt   *sacloud.ProxyLBACMESetting   `request:",omitempty"`
	StickySession *sacloud.ProxyLBStickySession `request:",omitempty"`
	Timeout       *sacloud.ProxyLBTimeout       `request:",omitempty"`
	SettingsHash  string
}

func (*UpdateRequest) ToRequestParameter

func (req *UpdateRequest) ToRequestParameter(current *sacloud.ProxyLB) (*sacloud.ProxyLBUpdateRequest, error)

func (*UpdateRequest) Validate

func (req *UpdateRequest) Validate() error

Jump to

Keyboard shortcuts

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