Documentation ¶
Index ¶
- Constants
- Variables
- func Control(ctx context.Context, k8s *Interface, fn ControlFunc) error
- func GetServiceAddress(_ context.Context, k8s *Interface, port string) (string, error)
- func Images(ctx context.Context, k8s *Interface, fn ImagesFunc) error
- func LoadOrGenCA(secrets corectlv1.SecretClient, namespace, name string) (*x509.Certificate, crypto.Signer, error)
- func LoadOrGenClientCert(secrets corectlv1.SecretClient, namespace, name string, ...) (*x509.Certificate, crypto.Signer, error)
- func LoadOrGenServerCert(secrets corectlv1.SecretClient, namespace, name string, ...) (*x509.Certificate, crypto.Signer, error)
- type Config
- type ControlFunc
- type ImagesFunc
- type Interface
Constants ¶
View Source
const (
DefaultNamespace = "kube-image"
)
Variables ¶
View Source
var DefaultConfig = Config{ Namespace: DefaultNamespace, }
Functions ¶
func GetServiceAddress ¶
func LoadOrGenCA ¶
func LoadOrGenCA(secrets corectlv1.SecretClient, namespace, name string) (*x509.Certificate, crypto.Signer, error)
func LoadOrGenClientCert ¶
func LoadOrGenClientCert(secrets corectlv1.SecretClient, namespace, name string, issuer *x509.Certificate, signer crypto.Signer, cn string) (*x509.Certificate, crypto.Signer, error)
func LoadOrGenServerCert ¶
Types ¶
type Config ¶
type ImagesFunc ¶
type ImagesFunc func(context.Context, imagesv1.ImagesClient) error
Click to show internal directories.
Click to hide internal directories.