ipv6addr

package
v2.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 7 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 {
	Zone string `request:"-" validate:"required"`

	IPv6Addr string `validate:"required,ipv6"`
	HostName string `validate:"required"`
}

func (*CreateRequest) ToRequestParameter

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

func (*CreateRequest) Validate

func (req *CreateRequest) Validate() error

type DeleteRequest

type DeleteRequest struct {
	Zone string `request:"-" validate:"required"`

	IPv6Addr       string `validate:"required,ipv6"`
	FailIfNotFound bool   `request:"-"`
}

func (*DeleteRequest) Validate

func (req *DeleteRequest) Validate() error

type FindRequest

type FindRequest struct {
	Zone string `request:"-" validate:"required"`

	SwitchIDs     []string `request:"-"`
	HostNames     []string `request:"-"`
	IPv6Addresses []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 ReadRequest

type ReadRequest struct {
	Zone string `request:"-" validate:"required"`

	IPv6Addr string `validate:"required,ipv6"`
}

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 IPv6Addr

func New

func New(caller sacloud.APICaller) *Service

New returns new service instance of IPv6Addr

func (*Service) Create

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

func (*Service) CreateWithContext

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

func (*Service) Delete

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

func (*Service) DeleteWithContext

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

func (*Service) Find

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

func (*Service) FindWithContext

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

func (*Service) Read

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

func (*Service) ReadWithContext

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

func (*Service) Update

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

func (*Service) UpdateWithContext

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

type UpdateRequest

type UpdateRequest struct {
	Zone string `request:"-" validate:"required"`

	IPv6Addr string `validate:"required,ipv6"`
	HostName string `validate:"required"`
}

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