Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyPodRequest(ctx context.Context, client k8cl.Client, namespace string, update bool, ...) error
- func GetClient(kubeConfig string, dryRun bool) (client.Client, error)
- func GetConfig(kubeConfig string) (*rest.Config, error)
- func GetResource(kind string) interface{}
- func GetScheme() (*runtime.Scheme, error)
- func NewHttpSo(namespace, name string) *kedahttpv1alpha1.HTTPScaledObject
- func NewService(port *pb.Container_Port, portName string, ...) (*corev1.Service, int32, error)
- func NewTrustedPodsNamespace(name string, paymentChannel *pb.PaymentChannel) *corev1.Namespace
- func RunInNamespaceOrRevert(ctx context.Context, cl client.Client, namespace *corev1.Namespace, ...) error
- func TrustedPodsNamespaceGetChannel(namespace *corev1.Namespace) (*pb.PaymentChannel, error)
- type FetchSecret
Constants ¶
View Source
const ( LabelTrustedPodsNamespace string = "coop.comrade/apocryph-namespace" AnnotationsTrustedPodsPaymentChannel string = "coop.comrade/apocryph-payment-contract" LabelIpfsP2P string = "coop.comrade/apocryph-p2p-helper" AnnotationsIpfsP2P string = "coop.comrade/apocryph-p2p-helper" )
View Source
const PRIVATE_KEY = "PRIVATE_KEY"
View Source
const PUBLIC_ADDRESS = "PUBLIC_ADDRESS"
Variables ¶
View Source
var TrustedPodsNamespaceFilter = client.HasLabels{LabelTrustedPodsNamespace}
Functions ¶
func ApplyPodRequest ¶
func GetResource ¶
func GetResource(kind string) interface{}
func NewHttpSo ¶
func NewHttpSo(namespace, name string) *kedahttpv1alpha1.HTTPScaledObject
func NewService ¶
func NewService(port *pb.Container_Port, portName string, httpSO *kedahttpv1alpha1.HTTPScaledObject, labels map[string]string) (*corev1.Service, int32, error)
func NewTrustedPodsNamespace ¶
func NewTrustedPodsNamespace(name string, paymentChannel *pb.PaymentChannel) *corev1.Namespace
func RunInNamespaceOrRevert ¶
func TrustedPodsNamespaceGetChannel ¶
func TrustedPodsNamespaceGetChannel(namespace *corev1.Namespace) (*pb.PaymentChannel, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.