platform

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package platform provides runtime methods to find out the correct prisma binary to use

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch added in v0.19.0

func Arch() string

func BinaryPlatformNameDynamic added in v0.19.0

func BinaryPlatformNameDynamic() string

BinaryPlatformNameDynamic returns the name of the prisma binary which should be used, for example "darwin" or "linux-openssl-1.1.x". This can include dynamically linked binaries.

func BinaryPlatformNameStatic added in v0.19.0

func BinaryPlatformNameStatic() string

BinaryPlatformNameStatic returns the name of the prisma binary which should be used, for example "darwin" or "linux-static-x64". This only includes statically linked binaries.

func CheckForExtension

func CheckForExtension(platform, path string) string

CheckForExtension adds a .exe extension on windows (e.g. .gz -> .exe.gz)

func Name

func Name() string

Name returns the platform name

Types

This section is empty.

Jump to

Keyboard shortcuts

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