namings

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package namings contains different naming functions used into the FLUIDOS environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForgeAllocationName added in v0.0.2

func ForgeAllocationName(flavorID string) string

ForgeAllocationName generates a name for the Allocation.

func ForgeContractName

func ForgeContractName(flavorID string) string

ForgeContractName creates a name for the Contract.

func ForgeDiscoveryName

func ForgeDiscoveryName(solverID string) string

ForgeDiscoveryName returns the name of the discovery following the pattern solverID-discovery.

func ForgeFlavorName added in v0.1.0

func ForgeFlavorName(resourceType, domain string) string

ForgeFlavorName returns the name of the flavor following the pattern Domain-resourceType-rand(4).

func ForgeHashString

func ForgeHashString(input string, length int) string

ForgeHashString computes SHA-256 Hash of the NodeUID.

func ForgePartitionName added in v0.1.0

func ForgePartitionName(partitionType string) string

ForgePartitionName generates a name for the Partition.

func ForgePeeringCandidateName

func ForgePeeringCandidateName(flavorID string) string

ForgePeeringCandidateName generates a name for the PeeringCandidate.

func ForgeRandomString

func ForgeRandomString() (string, error)

ForgeRandomString generates a random string of 16 bytes.

func ForgeReservationName

func ForgeReservationName(solverID string) string

ForgeReservationName generates a name for the Reservation.

func ForgeTransactionID

func ForgeTransactionID() (string, error)

ForgeTransactionID Generates a unique transaction ID using the current timestamp.

func ForgeVirtualNodeName added in v0.0.2

func ForgeVirtualNodeName(clusterName string) string

ForgeVirtualNodeName creates a name for the VirtualNode starting from the cluster name of the remote cluster.

func RetrieveFlavorNameFromPC added in v0.1.0

func RetrieveFlavorNameFromPC(pcName string) string

RetrieveFlavorNameFromPC generates a name for the Flavor from the PeeringCandidate.

func RetrieveSolverNameFromDiscovery

func RetrieveSolverNameFromDiscovery(discoveryName string) string

RetrieveSolverNameFromDiscovery retrieves the solver name from the discovery name.

func RetrieveSolverNameFromReservation

func RetrieveSolverNameFromReservation(reservationName string) string

RetrieveSolverNameFromReservation retrieves the solver name from the reservation name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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