namegetter

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package namegetter is utility to generate filenames for aisloader PUT requests

* Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseNameGetter

type BaseNameGetter struct {
	// contains filtered or unexported fields
}

func (*BaseNameGetter) Len

func (bng *BaseNameGetter) Len() int

func (*BaseNameGetter) Names

func (bng *BaseNameGetter) Names() []string

type ObjectNameGetter

type ObjectNameGetter interface {
	ObjName() string
	AddObjName(objName string)
	Init(names []string, rnd *rand.Rand)
	Names() []string
	Len() int
}

type PermutationUniqueImprovedNameGetter

type PermutationUniqueImprovedNameGetter struct {
	BaseNameGetter
	// contains filtered or unexported fields
}

func (*PermutationUniqueImprovedNameGetter) AddObjName

func (*PermutationUniqueImprovedNameGetter) Init

func (pung *PermutationUniqueImprovedNameGetter) Init(names []string, rnd *rand.Rand)

func (*PermutationUniqueImprovedNameGetter) ObjName

type PermutationUniqueNameGetter

type PermutationUniqueNameGetter struct {
	BaseNameGetter
	// contains filtered or unexported fields
}

func (*PermutationUniqueNameGetter) AddObjName

func (*PermutationUniqueNameGetter) AddObjName(string)

func (*PermutationUniqueNameGetter) Init

func (pung *PermutationUniqueNameGetter) Init(names []string, rnd *rand.Rand)

func (*PermutationUniqueNameGetter) ObjName

func (pung *PermutationUniqueNameGetter) ObjName() string

type RandomNameGetter

type RandomNameGetter struct {
	BaseNameGetter
	// contains filtered or unexported fields
}

func (*RandomNameGetter) AddObjName

func (rung *RandomNameGetter) AddObjName(objName string)

func (*RandomNameGetter) Init

func (rung *RandomNameGetter) Init(names []string, rnd *rand.Rand)

func (*RandomNameGetter) ObjName

func (rung *RandomNameGetter) ObjName() string

type RandomUniqueIterNameGetter

type RandomUniqueIterNameGetter struct {
	BaseNameGetter
	// contains filtered or unexported fields
}

func (*RandomUniqueIterNameGetter) AddObjName

func (ruing *RandomUniqueIterNameGetter) AddObjName(objName string)

func (*RandomUniqueIterNameGetter) Init

func (ruing *RandomUniqueIterNameGetter) Init(names []string, rnd *rand.Rand)

func (*RandomUniqueIterNameGetter) ObjName

func (ruing *RandomUniqueIterNameGetter) ObjName() string

type RandomUniqueNameGetter

type RandomUniqueNameGetter struct {
	BaseNameGetter
	// contains filtered or unexported fields
}

func (*RandomUniqueNameGetter) AddObjName

func (rung *RandomUniqueNameGetter) AddObjName(objName string)

func (*RandomUniqueNameGetter) Init

func (rung *RandomUniqueNameGetter) Init(names []string, rnd *rand.Rand)

func (*RandomUniqueNameGetter) ObjName

func (rung *RandomUniqueNameGetter) ObjName() string

Jump to

Keyboard shortcuts

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