common

package
v0.5.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// AnckEdgefarmSysSecretName is the name of the secret that contains all data for the edgefarm-sys account for nats
	AnckEdgefarmSysSecretName = "edgefarm-sys"
	// AnckcredentialsServiceName is the name of the service that provides the credentials
	AnckcredentialsServiceName = "anck-credentials"
	// AnckcredentialsServicePort is the port on which the anck-credentials service is running
	AnckcredentialsServicePort = 6000
	// AnckNamespace is the namespace in which everything anck related is placed in
	AnckNamespace = "anck"

	// AnckEdgefarmSysOperatorJWTKey is the key in the edgefarm-sys secret that contains the operator jwt
	AnckEdgefarmSysOperatorJWTKey = "operator-jwt"
	// AnckEdgefarmSysSysAccountCreds is the key in the edgefarm-sys secret that contains the sys account credentials
	AnckEdgefarmSysSysAccountCreds = "sys-creds"
	// AnckEdgefarmSysSysAccountJWT is the key in the edgefarm-sys secret that contains the sys account jwt
	AnckEdgefarmSysSysAccountJWT = "sys-jwt"
	// AnckEdgefarmSysSysAccounPublicKey is the key in the edgefarm-sys secret that contains the sys account public key
	AnckEdgefarmSysSysAccounPublicKey = "sys-public-key"
)

Variables

View Source
var (
	// AnckcredentialsServiceURL is the URL of the anck-credentials service
	AnckcredentialsServiceURL = fmt.Sprintf("%s.%s.svc.cluster.local:%d", AnckcredentialsServiceName, AnckNamespace, AnckcredentialsServicePort)
)

Functions

func SliceDiff

func SliceDiff[T any](s1 []T, s2 []T) []T

sliceDiff returns the difference between two slices as a slice

func SliceEqual

func SliceEqual[T any](s1 []T, s2 []T) bool

sliceEqual returns true if the two slices have equal values, false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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