ipaddress

package
v2.19.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

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 New

func New(caller sacloud.APICaller) *Service

New returns new service instance of IPAddress

func (*Service) List

func (s *Service) List(req *ListRequest) ([]*sacloud.IPAddress, error)

func (*Service) ListWithContext

func (s *Service) ListWithContext(ctx context.Context, req *ListRequest) ([]*sacloud.IPAddress, error)

func (*Service) Read

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

func (*Service) ReadWithContext

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

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

Jump to

Keyboard shortcuts

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