Documentation ¶
Index ¶
- type CreateRequest
- type DeleteCertificatesRequest
- type DeleteRequest
- type FindRequest
- type GetCertificatesRequest
- type HealthStatusRequest
- type MonitorConnectionRequest
- type ReadRequest
- type RenewLetsEncryptCertRequest
- type Service
- func (s *Service) Create(req *CreateRequest) (*sacloud.ProxyLB, error)
- func (s *Service) CreateWithContext(ctx context.Context, req *CreateRequest) (*sacloud.ProxyLB, error)
- func (s *Service) Delete(req *DeleteRequest) error
- func (s *Service) DeleteCertificates(req *DeleteCertificatesRequest) error
- func (s *Service) DeleteCertificatesWithContext(ctx context.Context, req *DeleteCertificatesRequest) error
- func (s *Service) DeleteWithContext(ctx context.Context, req *DeleteRequest) error
- func (s *Service) Find(req *FindRequest) ([]*sacloud.ProxyLB, error)
- func (s *Service) FindWithContext(ctx context.Context, req *FindRequest) ([]*sacloud.ProxyLB, error)
- func (s *Service) GetCertificates(req *GetCertificatesRequest) (*sacloud.ProxyLBCertificates, error)
- func (s *Service) GetCertificatesWithContext(ctx context.Context, req *GetCertificatesRequest) (*sacloud.ProxyLBCertificates, error)
- func (s *Service) HealthStatus(req *HealthStatusRequest) (*sacloud.ProxyLBHealth, error)
- func (s *Service) HealthStatusWithContext(ctx context.Context, req *HealthStatusRequest) (*sacloud.ProxyLBHealth, error)
- func (s *Service) MonitorConnection(req *MonitorConnectionRequest) ([]*sacloud.MonitorConnectionValue, error)
- func (s *Service) MonitorConnectionWithContext(ctx context.Context, req *MonitorConnectionRequest) ([]*sacloud.MonitorConnectionValue, error)
- func (s *Service) Read(req *ReadRequest) (*sacloud.ProxyLB, error)
- func (s *Service) ReadWithContext(ctx context.Context, req *ReadRequest) (*sacloud.ProxyLB, error)
- func (s *Service) RenewLetsEncryptCert(req *RenewLetsEncryptCertRequest) error
- func (s *Service) RenewLetsEncryptCertWithContext(ctx context.Context, req *RenewLetsEncryptCertRequest) error
- func (s *Service) SetCertificates(req *SetCertificatesRequest) error
- func (s *Service) SetCertificatesWithContext(ctx context.Context, req *SetCertificatesRequest) error
- func (s *Service) Update(req *UpdateRequest) (*sacloud.ProxyLB, error)
- func (s *Service) UpdateWithContext(ctx context.Context, req *UpdateRequest) (*sacloud.ProxyLB, error)
- type SetCertificatesRequest
- type UpdateRequest
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 400000"` HealthCheck *sacloud.ProxyLBHealthCheck SorryServer *sacloud.ProxyLBSorryServer BindPorts []*sacloud.ProxyLBBindPort Servers []*sacloud.ProxyLBServer Rules []*sacloud.ProxyLBRule LetsEncrypt *sacloud.ProxyLBACMESetting StickySession *sacloud.ProxyLBStickySession Gzip *sacloud.ProxyLBGzip 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 ¶
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 ¶
func (*GetCertificatesRequest) Validate ¶
func (req *GetCertificatesRequest) Validate() error
type HealthStatusRequest ¶
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 ¶
func (*ReadRequest) Validate ¶
func (req *ReadRequest) Validate() error
type RenewLetsEncryptCertRequest ¶
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 (*Service) CreateWithContext ¶
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) FindWithContext ¶
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) ReadWithContext ¶
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) UpdateWithContext ¶
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 400000"` 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"` Gzip *sacloud.ProxyLBGzip `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
Source Files ¶
- create_request.go
- create_service.go
- delete_certificates_request.go
- delete_certificates_service.go
- delete_request.go
- delete_service.go
- find_request.go
- find_service.go
- get_certificates_request.go
- get_certificates_service.go
- health_status_request.go
- health_status_service.go
- monitor_connection_request.go
- monitor_connection_service.go
- read_request.go
- read_service.go
- renew_lets_encrypt_cert_request.go
- renew_lets_encrypt_cert_service.go
- service.go
- set_certificates_request.go
- set_certificates_service.go
- update_request.go
- update_service.go
Click to show internal directories.
Click to hide internal directories.