platform

package
v0.0.0-...-91e0ed7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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

func Arch() string

func BinaryPlatformNameDynamic

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

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