Documentation ¶
Index ¶
- Constants
- Variables
- func Btoi(b bool) int
- func CreateFunnyName() string
- func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
- func FormatLogExtractionScript() string
- func FormatStartupScript(ctx context.Context, server *nsserver.NSServer, serverDesc string, ...) (string, error)
- func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
- func GeneratePublicKey(privatekey *rsa.PublicKey) ([]byte, error)
- func LatestStableDockerNorthstar() (string, string)
- func RestartServerScript() string
- type CappedBuffer
- type DockerVersion
Constants ¶
View Source
const LinkPostfix = "_link"
View Source
const NorthstarDedicatedRepo = "ghcr.io/pg9182/"
View Source
const RequiredByClientPostfix = "_clientRequired"
View Source
const VersionPostfix = "_version"
Variables ¶
View Source
var DockerTagRegexp = regexp.MustCompile("^(northstar-dedicated|northstar-dedicated-ci|northstar-dedicated-dev):([a-zA-Z0-9_.-]{1,128})$")
View Source
var ErrBufferCapacityExceeded = fmt.Errorf("buffer capacity exceeded. File too large")
View Source
var NorthstarVersions = map[string]DockerVersion{ "1.22.0": { IsLatest: true, DockerImage: NorthstarDedicatedRepo + "northstar-dedicated:1-tf2.0.11.0-ns1.22.0", }, }
View Source
var RemoteFile = "/extract.zip"
Functions ¶
func EncodePrivateKeyToPEM ¶
func EncodePrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
EncodePrivateKeyToPEM encodes Private Key from RSA to PEM format
func FormatLogExtractionScript ¶
func FormatLogExtractionScript() string
func FormatStartupScript ¶
func GeneratePrivateKey ¶
func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
GeneratePrivateKey creates a RSA Private Key of specified byte size
func GeneratePublicKey ¶
GeneratePublicKey take a rsa.PublicKey and return bytes suitable for writing to .pub file returns in the format "ssh-rsa ..."
func RestartServerScript ¶
func RestartServerScript() string
Types ¶
type CappedBuffer ¶
type DockerVersion ¶
Click to show internal directories.
Click to hide internal directories.