Documentation ¶
Overview ¶
Package namings contains different naming functions used into the FLUIDOS environment.
Index ¶
- func ForgeAllocationName(flavorID string) string
- func ForgeContractName(flavorID string) string
- func ForgeDiscoveryName(solverID string) string
- func ForgeFlavorName(resourceType, domain string) string
- func ForgeHashString(input string, length int) string
- func ForgeNamespaceName(contract *reservationv1alpha1.Contract) string
- func ForgePartitionName(partitionType string) string
- func ForgePeeringCandidateName(flavorID string) string
- func ForgeRandomString() (string, error)
- func ForgeReservationName(solverID string) string
- func ForgeSecretName(contract *reservationv1alpha1.Contract) string
- func ForgeTransactionID() (string, error)
- func ForgeVirtualNodeName(clusterName string) string
- func RetrieveFlavorNameFromPC(pcName string) string
- func RetrieveSolverNameFromDiscovery(discoveryName string) string
- func RetrieveSolverNameFromReservation(reservationName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForgeAllocationName ¶ added in v0.0.2
ForgeAllocationName generates a name for the Allocation.
func ForgeContractName ¶
ForgeContractName creates a name for the Contract.
func ForgeDiscoveryName ¶
ForgeDiscoveryName returns the name of the discovery following the pattern solverID-discovery.
func ForgeFlavorName ¶ added in v0.1.0
ForgeFlavorName returns the name of the flavor following the pattern Domain-resourceType-rand(4).
func ForgeHashString ¶
ForgeHashString computes SHA-256 Hash of the NodeUID.
func ForgeNamespaceName ¶ added in v0.1.0
func ForgeNamespaceName(contract *reservationv1alpha1.Contract) string
ForgeNamespaceName creates a namespace name from a contract.
func ForgePartitionName ¶ added in v0.1.0
ForgePartitionName generates a name for the Partition.
func ForgePeeringCandidateName ¶
ForgePeeringCandidateName generates a name for the PeeringCandidate.
func ForgeRandomString ¶
ForgeRandomString generates a random string of 16 bytes.
func ForgeReservationName ¶
ForgeReservationName generates a name for the Reservation.
func ForgeSecretName ¶ added in v0.1.0
func ForgeSecretName(contract *reservationv1alpha1.Contract) string
ForgeSecretName creates a secret name from a contract.
func ForgeTransactionID ¶
ForgeTransactionID Generates a unique transaction ID using the current timestamp.
func ForgeVirtualNodeName ¶ added in v0.0.2
ForgeVirtualNodeName creates a name for the VirtualNode starting from the cluster name of the remote cluster.
func RetrieveFlavorNameFromPC ¶ added in v0.1.0
RetrieveFlavorNameFromPC generates a name for the Flavor from the PeeringCandidate.
func RetrieveSolverNameFromDiscovery ¶
RetrieveSolverNameFromDiscovery retrieves the solver name from the discovery name.
func RetrieveSolverNameFromReservation ¶
RetrieveSolverNameFromReservation retrieves the solver name from the reservation name.
Types ¶
This section is empty.