create

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package create provides options for the volume create.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetVolumeCreateOption

type SetVolumeCreateOption func(*volume.CreateOptions) error

SetVolumeCreateOption is a function that sets a parameter for the volume create.

func WithClusterVolumeSpec

func WithClusterVolumeSpec(setters ...clusterspec.SetClusterVolumeSpecOption) SetVolumeCreateOption

WithClusterVolumeSpec sets the cluster volume spec.

AccessMode defines how the volume is used by tasks.

func WithDriver

func WithDriver(driver string) SetVolumeCreateOption

WithDriver sets the driver of the volume.

func WithDriverOpts

func WithDriverOpts(key string, value string) SetVolumeCreateOption

WithDriverOpts appends the driver options of the volume.

These options are passed directly to the driver and are driver specific.

func WithLabels

func WithLabels(key string, value string) SetVolumeCreateOption

WithLabels appends the labels of the volume.

User-defined key/value metadata.

func WithName

func WithName(name string) SetVolumeCreateOption

WithName sets the name of the volume.

The new volume's name. If not specified, Docker generates a name.

Directories

Path Synopsis
package clusterspec provides options for the volume cluster volume spec.
package clusterspec provides options for the volume cluster volume spec.
accessibility
package accessibility provides options for the volume cluster volume spec accessibility requirements.
package accessibility provides options for the volume cluster volume spec accessibility requirements.
accessmode
package accessmode provides options for the volume cluster volume spec access mode.
package accessmode provides options for the volume cluster volume spec access mode.

Jump to

Keyboard shortcuts

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