Documentation ¶
Index ¶
- Constants
- type Option
- type Options
- type PublishOpts
- type Service
- func (s *Service) Exists(ctx context.Context, target string) (bool, error)
- func (s *Service) Publish(ctx context.Context, opts PublishOpts) error
- func (s *Service) Stage(ctx context.Context, opts StageOpts) error
- func (s *Service) Unpublish(ctx context.Context, opts UnpublishOpts) error
- func (s *Service) Unstage(ctx context.Context, opts UnstageOpts) error
- type StageOpts
- type UnpublishOpts
- type UnstageOpts
Constants ¶
View Source
const (
// DefaultFilesystem defines the standard filesystem if nothing else is provided.
DefaultFilesystem = "ext4"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublishOpts ¶
type PublishOpts struct { Volume *model.Volume Target string Staging string IsBlock bool Readonly bool FSType string MountFlags []string }
PublishOpts defines the available options for the publish handler.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines the service for the mount component.
func NewService ¶
NewService simply initializes a new mount service.
func (*Service) Publish ¶
func (s *Service) Publish(ctx context.Context, opts PublishOpts) error
Publish is publishing the request volume.
type UnpublishOpts ¶
UnpublishOpts defines the available options for the unpublish handler.
type UnstageOpts ¶
UnstageOpts defines the available options for the unstage handler.
Click to show internal directories.
Click to hide internal directories.