package
19.10.0+incompatible
Repository: https://github.com/safescale-dev-team/safescale.git
Documentation: pkg.go.dev

# Functions

CIDRToIPv4Range converts CIDR to IPv4 range.
CIDRToLongRange converts CIDR to IPv4 range.
DecryptChunkGroup use the keyInfo to decrypt the encryptedChunkGroup, then deserialize it from json, return a chunkGroup.
DecryptKeyInfo use the private RSA Key to decrypt the encryptedKeyInfo, then deserialize it from json, return a KeyInfo.
FromPBHostDefinitionToPBGatewayDefinition converts a pb.HostDefinition to pb.GatewayDefinition.
FromPBHostSizing converts a protobuf HostSizing message to resources.SizingRequirements.
GetConnection returns a connection to GRPC server.
GetContext ...
GetReference return a reference from the name or id given in the pb.Reference.
GetTimeoutContext return a context for grpc commands.
GetUUID ...
Hash will compute and return a SHA-256 hash of the datas of the reader.
IPv4ToLong converts IPv4 to uint32.
IsCIDRRoutable tells if the network is routable.
JobCancelUUID ...
JobDeregister ...
JobDeregisterUUID ...
JobList ...
JobRegister ...
LongToIPv4 converts uint32 to IP.
NewBucketGenerator return a bucketGenerator returning the buckets given as parameters.
NewChunkGroup return a chunk group initialized with a new random aesPassword, buckets, and file infos.
NewKeyInfo retrurn a keyInfo struct with a random AES password generated.
NewShard return a new Shard.
ToHostStatus ...
ToPBBucketList convert a list of string into a *ContainerLsit.
ToPBBucketMountPoint convert a Bucket into a BucketMountingPoint.
ToPBFileList convert a list of file names from api to protocolbuffer FileList format.
ToPBGatewayDefinition converts a resources.HostDefinition tp .GatewayDefinition.
ToPBHost convert an host from api to protocolbuffer format.
ToPBHostDefinition ...
ToPBHostSizing converts a protobuf HostSizing message to resources.SizingRequirements.
ToPBHostTemplate convert an template from api to protocolbuffer format.
ToPBImage convert an image from api to protocolbuffer format.
ToPBNetwork convert a network from api to protocolbuffer format.
ToPBShare convert a share from model to protocolbuffer format.
ToPBShareMount convert share mount on host to protocolbuffer format.
ToPBShareMountList converts share mounts to protocol buffer.
ToPBSshConfig converts a system.SSHConfig into a SshConfig.
ToPBVirtualIP converts a resources.VIP to a pb.VirtualIp.
ToPBVolume converts an api.Volume to a *Volume.
ToPBVolumeAttachment converts an api.Volume to a *Volume.
ToPBVolumeInfo converts an api.Volume to a *VolumeInfo.
ToSystemSSHConfig converts a pb.SshConfig into a system.SSHConfig.

# Variables

BaseFolder is the path of the base folder containing safescale data.
Debug if set to true, work in debug mode.
LogFolder ...
TempFolder ...
VarFolder ...
Verbose if set to true, increase verbosity.

# Structs

BucketGenerator ...
ChunkGroup ...
KeyInfo ...
Shard ...