Documentation ¶
Index ¶
- Variables
- type StandardRepoHandleType
- func (t StandardRepoHandleType) Equal(o attr.Type) bool
- func (t StandardRepoHandleType) String() string
- func (t StandardRepoHandleType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t StandardRepoHandleType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t StandardRepoHandleType) ValueType(_ context.Context) attr.Value
- type StandardRepoHandleValue
- func (v StandardRepoHandleValue) CephVersionName() apitypes.CephVersionName
- func (v StandardRepoHandleValue) ComponentName() string
- func (v StandardRepoHandleValue) Equal(o attr.Value) bool
- func (v StandardRepoHandleValue) IsCephHandle() bool
- func (v StandardRepoHandleValue) IsSupportedFilePath(filePath string) bool
- func (v StandardRepoHandleValue) Type(_ context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (t StandardRepoHandleType) ValueFromString(_ context.Context, in basetypes.StringValue) ( basetypes.StringValuable, diag.Diagnostics, )
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.
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 ¶
func (v StandardRepoHandleValue) Equal(o attr.Value) bool
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.