lxd

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion added in v1.10.2

func CheckVersion(versionString string, versionConstraint string) (bool, error)

CheckVersion checks whether the version satisfies the provided version constraints.

func IsSocketWritable added in v1.10.4

func IsSocketWritable(socketPath string) bool

IsSocketWritable returns true if user has write permissions for socket on the given path.

func Provider

func Provider() *schema.Provider

Provider returns a terraform.ResourceProvider.

func ValueInSlice added in v1.10.3

func ValueInSlice[T comparable](value T, slice []T) bool

ValueInSlice checks whether a value is present in the given slice.

Types

type File added in v1.1.0

type File struct {
	RemoteName        string
	InstanceName      string
	TargetFile        string
	Content           string
	Source            string
	UID               int
	GID               int
	Mode              string
	CreateDirectories bool
	Append            bool
}

func (File) String added in v1.1.0

func (f File) String() string

Jump to

Keyboard shortcuts

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