package
0.7.0
Repository: https://github.com/lxc/incus.git
Documentation: pkg.go.dev

# Functions

AllowBackupCreation returns an error if any project-specific restriction is violated when creating a new backup in a project.
AllowClusterGroup returns nil if the given project is allowed to use the cluster groupName.
AllowClusterMember returns nil if the given project is allowed to use the cluster member.
AllowInstanceCreation returns an error if any project-specific limit or restriction is violated when creating a new instance.
AllowInstanceUpdate returns an error if any project-specific limit or restriction is violated when updating an existing instance.
AllowProfileUpdate checks that project limits and restrictions are not violated when changing a profile.
AllowProjectUpdate checks the new config to be set on a project is valid.
AllowSnapshotCreation returns an error if any project-specific restriction is violated when creating a new snapshot in a project.
AllowVolumeCreation returns an error if any project-specific limit or restriction is violated when creating a new custom volume in a project.
AllowVolumeUpdate returns an error if any project-specific limit or restriction is violated when updating an existing custom volume.
CheckClusterTargetRestriction check if user is allowed to use cluster member targeting.
CheckRestrictedDevicesDiskPaths checks whether the disk's source path is within the allowed paths specified in the project's restricted.devices.disk.paths config setting.
CheckTarget checks if the given cluster target (member or group) is allowed.
CheckTargetGroup checks if the given groupName is allowed for the project.
CheckTargetMember checks if the given targetMemberName is present in allMembers and is allowed for the project.
DNS adds ".<project>" as a suffix to instance name when the given project name is not "default".
FilterUsedBy filters a UsedBy list based on project access.
GetCurrentAllocations returns the current resource utilization for a given project.
GetImageSpaceBudget returns how much disk space is left in the given project for writing images.
GetRestrictedClusterGroups returns a slice of restricted cluster groups for the given project.
ImageProjectFromRecord returns the project name to use for the image based on the supplied project.
Instance adds the "<project>_" prefix to instance name when the given project name is not "default".
InstanceParts takes a project prefixed Instance name string and returns the project and instance name.
NetworkAllowed returns whether access is allowed to a particular network based on projectConfig.
NetworkIntegrationAllowed returns whether access is allowed for a particular network integration based on projectConfig.
NetworkProject returns the effective project name to use for the network based on the requested project.
NetworkProjectFromRecord returns the project name to use for the network based on the supplied project.
NetworkZoneProject returns the effective project name to use for network zone based on the requested project.
NetworkZoneProjectFromRecord returns the project name to use for the network zone based on the supplied project.
ProfileProject returns the effective project to use for the profile based on the requested project.
ProfileProjectFromRecord returns the project name to use for the profile based on the supplied project.
StorageBucket adds the "<project>_prefix" to the storage bucket name.
StorageBucketProject returns the effective project name to use to for the bucket based on the requested project.
StorageBucketProjectFromRecord returns the project name to use to for the bucket based on the supplied project.
StorageVolume adds the "<project>_prefix" to the storage volume name.
StorageVolumeParts takes a project prefixed storage volume name and returns the project and storage volume name as separate variables.
StorageVolumeProject returns the project name to use to for the volume based on the requested project.
StorageVolumeProjectFromRecord returns the project name to use to for the volume based on the supplied project.