Documentation ¶
Index ¶
- type CloseFTPRequest
- type CreateRequest
- type DeleteRequest
- type DownloadRequest
- type FindRequest
- type OpenFTPRequest
- type ReadRequest
- type Service
- func (s *Service) CloseFTP(req *CloseFTPRequest) error
- func (s *Service) CloseFTPWithContext(ctx context.Context, req *CloseFTPRequest) error
- func (s *Service) Create(req *CreateRequest) (*sacloud.Archive, error)
- func (s *Service) CreateWithContext(ctx context.Context, req *CreateRequest) (*sacloud.Archive, error)
- func (s *Service) Delete(req *DeleteRequest) error
- func (s *Service) DeleteWithContext(ctx context.Context, req *DeleteRequest) error
- func (s *Service) Download(req *DownloadRequest) error
- func (s *Service) DownloadWithContext(ctx context.Context, req *DownloadRequest) error
- func (s *Service) Find(req *FindRequest) ([]*sacloud.Archive, error)
- func (s *Service) FindWithContext(ctx context.Context, req *FindRequest) ([]*sacloud.Archive, error)
- func (s *Service) OpenFTP(req *OpenFTPRequest) (*sacloud.FTPServer, error)
- func (s *Service) OpenFTPWithContext(ctx context.Context, req *OpenFTPRequest) (*sacloud.FTPServer, error)
- func (s *Service) Read(req *ReadRequest) (*sacloud.Archive, error)
- func (s *Service) ReadWithContext(ctx context.Context, req *ReadRequest) (*sacloud.Archive, error)
- func (s *Service) Update(req *UpdateRequest) (*sacloud.Archive, error)
- func (s *Service) UpdateWithContext(ctx context.Context, req *UpdateRequest) (*sacloud.Archive, error)
- func (s *Service) Upload(req *UploadRequest) error
- func (s *Service) UploadWithContext(ctx context.Context, req *UploadRequest) error
- func (s *Service) WaitReady(req *WaitReadyRequest) error
- func (s *Service) WaitReadyWithContext(ctx context.Context, req *WaitReadyRequest) error
- type UpdateRequest
- type UploadRequest
- type WaitReadyRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseFTPRequest ¶
type CloseFTPRequest struct { Zone string `request:"-" validate:"required"` ID types.ID `request:"-" validate:"required"` }
func (*CloseFTPRequest) Validate ¶
func (req *CloseFTPRequest) Validate() error
type CreateRequest ¶
type CreateRequest struct { Zone string `request:"-" validate:"required"` Name string `validate:"required"` Description string `validate:"min=0,max=512"` Tags types.Tags IconID types.ID SizeGB int SourcePath string `validate:"omitempty,file"` SourceReader io.Reader SourceDiskID types.ID SourceArchiveID types.ID SourceArchiveZone string }
func (*CreateRequest) Validate ¶
func (req *CreateRequest) Validate() error
type DeleteRequest ¶
type DeleteRequest struct { Zone string `request:"-" validate:"required"` ID types.ID `request:"-" validate:"required"` FailIfNotFound bool `request:"-"` }
func (*DeleteRequest) Validate ¶
func (req *DeleteRequest) Validate() error
type DownloadRequest ¶
type DownloadRequest struct { Zone string `request:"-" validate:"required"` ID types.ID `request:"-" validate:"required"` Path string `request:"-"` Writer io.Writer `request:"-"` }
func (*DownloadRequest) Validate ¶
func (req *DownloadRequest) Validate() error
type FindRequest ¶
type FindRequest struct { Zone string `request:"-" validate:"required"` // OSType OS種別、NamesやTagsを指定した場合はそちらが優先される OSType ostype.ArchiveOSType `request:"-"` Names []string `request:"-"` Tags []string `request:"-"` Scope types.EScope `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 OpenFTPRequest ¶
type OpenFTPRequest struct { Zone string `request:"-" validate:"required"` ID types.ID `request:"-" validate:"required"` ChangePassword bool }
func (*OpenFTPRequest) Validate ¶
func (req *OpenFTPRequest) Validate() error
type ReadRequest ¶
type ReadRequest struct { Zone string `request:"-" validate:"required"` ID types.ID `request:"-" validate:"required"` }
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 Archive
func (*Service) CloseFTP ¶
func (s *Service) CloseFTP(req *CloseFTPRequest) error
func (*Service) CloseFTPWithContext ¶
func (s *Service) CloseFTPWithContext(ctx context.Context, req *CloseFTPRequest) error
func (*Service) CreateWithContext ¶
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) Download ¶
func (s *Service) Download(req *DownloadRequest) error
func (*Service) DownloadWithContext ¶
func (s *Service) DownloadWithContext(ctx context.Context, req *DownloadRequest) error
func (*Service) FindWithContext ¶
func (*Service) OpenFTP ¶
func (s *Service) OpenFTP(req *OpenFTPRequest) (*sacloud.FTPServer, error)
func (*Service) OpenFTPWithContext ¶
func (*Service) ReadWithContext ¶
func (*Service) UpdateWithContext ¶
func (*Service) Upload ¶
func (s *Service) Upload(req *UploadRequest) error
func (*Service) UploadWithContext ¶
func (s *Service) UploadWithContext(ctx context.Context, req *UploadRequest) error
func (*Service) WaitReady ¶
func (s *Service) WaitReady(req *WaitReadyRequest) error
func (*Service) WaitReadyWithContext ¶
func (s *Service) WaitReadyWithContext(ctx context.Context, req *WaitReadyRequest) error
type UpdateRequest ¶
type UpdateRequest struct { Zone string `request:"-" validate:"required"` 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"` }
func (*UpdateRequest) ToRequestParameter ¶
func (req *UpdateRequest) ToRequestParameter(current *sacloud.Archive) (*sacloud.ArchiveUpdateRequest, error)
func (*UpdateRequest) Validate ¶
func (req *UpdateRequest) Validate() error
type UploadRequest ¶
type UploadRequest struct { Zone string `request:"-" validate:"required"` ID types.ID `request:"-" validate:"required"` Path string `validate:"omitempty,file"` Reader io.Reader }
func (*UploadRequest) Validate ¶
func (req *UploadRequest) Validate() error
type WaitReadyRequest ¶
type WaitReadyRequest struct { Zone string `request:"-" validate:"required"` ID types.ID `request:"-" validate:"required"` }
func (*WaitReadyRequest) Validate ¶
func (req *WaitReadyRequest) Validate() error
Source Files ¶
- close_ftp_request.go
- close_ftp_service.go
- create_request.go
- create_service.go
- delete_request.go
- delete_service.go
- download_request.go
- download_service.go
- find_request.go
- find_service.go
- open_ftp_request.go
- open_ftp_service.go
- read_request.go
- read_service.go
- service.go
- update_request.go
- update_service.go
- upload_request.go
- upload_service.go
- wait_ready_request.go
- wait_ready_service.go
Click to show internal directories.
Click to hide internal directories.