domain

package
v0.0.0-...-037ba61 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	Status string `json:"status"`
}

Health represents the HealthCheck response

type Info

type Info struct {
	Version string `json:"version"`
}

Info contains the application information

type Repository

type Repository interface {
	appcontext.Component
	// CheckSecretK8S return a annotation to validate the secret already created
	CheckSecretK8S(name, namespace string) (string, string, error)
	// CreateSecretK8S creates a new secret
	CreateSecretK8S(name, namespace string, data, labels, annotations map[string]string) (string, error)
	// UpdateSecretK8S updates an already created secret
	UpdateSecretK8S(name, namespace string, data, labels, annotations map[string]string) (string, error)
	// DeleteSecretK8S deletes a secret
	DeleteSecretK8S(name, namespace string) (string, error)
}

Repository interface

func GetRepository

func GetRepository() Repository

GetRepository func

type Secret

type Secret struct {
	Name        string            `json:"name"`
	Namespace   string            `json:"namespace"`
	Checksum    string            `json:"checksum"`
	Data        map[string]string `json:"data"`
	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`
}

Secret struct

Jump to

Keyboard shortcuts

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