Documentation ¶
Index ¶
- type ListRequest
- type ReadRequest
- type Service
- func (s *Service) List(req *ListRequest) ([]*sacloud.IPAddress, error)
- func (s *Service) ListWithContext(ctx context.Context, req *ListRequest) ([]*sacloud.IPAddress, error)
- func (s *Service) Read(req *ReadRequest) (*sacloud.IPAddress, error)
- func (s *Service) ReadWithContext(ctx context.Context, req *ReadRequest) (*sacloud.IPAddress, error)
- func (s *Service) UpdateHostName(req *UpdateHostNameRequest) error
- func (s *Service) UpdateHostNameWithContext(ctx context.Context, req *UpdateHostNameRequest) error
- type UpdateHostNameRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListRequest ¶
type ListRequest struct {
Zone string `request:"-" validate:"required"`
}
func (*ListRequest) Validate ¶
func (req *ListRequest) Validate() error
type ReadRequest ¶
type ReadRequest struct { Zone string `request:"-" validate:"required"` IPAddress string `request:"-" validate:"required,ipv4"` }
func (*ReadRequest) Validate ¶
func (req *ReadRequest) Validate() error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides a high-level API of for IPAddress
func (*Service) ListWithContext ¶
func (*Service) ReadWithContext ¶
func (*Service) UpdateHostName ¶
func (s *Service) UpdateHostName(req *UpdateHostNameRequest) error
func (*Service) UpdateHostNameWithContext ¶
func (s *Service) UpdateHostNameWithContext(ctx context.Context, req *UpdateHostNameRequest) error
type UpdateHostNameRequest ¶
type UpdateHostNameRequest struct { Zone string `request:"-" validate:"required"` IPAddress string `request:"-" validate:"required,ipv4"` HostName string `request:"-" validate:"required"` RetryMax int RetryInterval int }
func (*UpdateHostNameRequest) Validate ¶
func (req *UpdateHostNameRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.