Documentation
¶
Overview ¶
Package vpd provide ability to read and update VPD values.
Index ¶
- func IsEnrollmentInClean(ctx context.Context, ha components.HostAccess, timeout time.Duration) (bool, error)
- func Read(ctx context.Context, ha components.HostAccess, timeout time.Duration, ...) (string, error)
- func ReadRO(ctx context.Context, ha components.HostAccess, timeout time.Duration, ...) (string, error)
- func Set(ctx context.Context, ha components.HostAccess, timeout time.Duration, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEnrollmentInClean ¶
func IsEnrollmentInClean(ctx context.Context, ha components.HostAccess, timeout time.Duration) (bool, error)
IsEnrollmentInClean checks that the device's is not in enrollment state.
Verify that the device's enrollment state is clean.
The validation based on the value of "check_enrollment" from VPD. Which can be obtained by running:
vpd -g check_enrollment -i RW_VPD If the value is check_enrollment=1 then the device will perform forced re-enrollment check and depending on the response from the server might force the device to enroll again. If the value is check_enrollment=0, then device can be used like a new device.
func Read ¶
func Read(ctx context.Context, ha components.HostAccess, timeout time.Duration, key string) (string, error)
Read read vpd value of VPD.
func ReadRO ¶
func ReadRO(ctx context.Context, ha components.HostAccess, timeout time.Duration, key string) (string, error)
ReadRO read vpd value of VPD from RO_VPD partition.
func Set ¶
func Set(ctx context.Context, ha components.HostAccess, timeout time.Duration, key, value string) error
Set sets vpd value of VPD by key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.