apt

package
v0.66.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrValueConversion indicates an error while converting a value for a Proxmox VE API APT entity.
	ErrValueConversion = func(format string, attrs ...any) error {
		return function.NewFuncError(fmt.Sprintf(format, attrs...))
	}
)

Functions

This section is empty.

Types

type StandardRepoHandleType

type StandardRepoHandleType struct {
	basetypes.StringType
}

StandardRepoHandleType is a type that represents an APT standard repository handle.

func (StandardRepoHandleType) Equal

func (t StandardRepoHandleType) Equal(o attr.Type) bool

Equal returns true if the two types are equal.

func (StandardRepoHandleType) String

func (t StandardRepoHandleType) String() string

String returns a string representation of the type.

func (StandardRepoHandleType) ValueFromString

ValueFromString converts a string value to a basetypes.StringValuable.

func (StandardRepoHandleType) ValueFromTerraform

func (t StandardRepoHandleType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

ValueFromTerraform converts a Terraform value to a basetypes.StringValuable.

func (StandardRepoHandleType) ValueType

ValueType returns the underlying value type.

type StandardRepoHandleValue

type StandardRepoHandleValue struct {
	basetypes.StringValue
	// contains filtered or unexported fields
}

StandardRepoHandleValue is a type that represents the value of an APT standard repository handle.

func (StandardRepoHandleValue) CephVersionName

func (v StandardRepoHandleValue) CephVersionName() apitypes.CephVersionName

CephVersionName returns the corresponding Ceph major version name. Note that the version will be apitypes.CephVersionNameUnknown when not a Ceph specific handle!

func (StandardRepoHandleValue) ComponentName

func (v StandardRepoHandleValue) ComponentName() string

ComponentName returns the corresponding component name.

func (StandardRepoHandleValue) Equal

Equal returns true if the two values are equal.

func (StandardRepoHandleValue) IsCephHandle

func (v StandardRepoHandleValue) IsCephHandle() bool

IsCephHandle indicates if this is a Ceph APT standard repository.

func (StandardRepoHandleValue) IsSupportedFilePath

func (v StandardRepoHandleValue) IsSupportedFilePath(filePath string) bool

IsSupportedFilePath returns whether the handle is supported for the given source list file path.

func (StandardRepoHandleValue) Type

Type returns the type of the value.

Jump to

Keyboard shortcuts

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