sslcert

package
v0.0.0-...-97cf01e Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// FakeSSLCertSelfLink is a fake self link for ssl certs.
	FakeSSLCertSelfLink = "target/cert/self/link"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

Syncer manages GCP ssl certs for multicluster GCP L7 load balancers.

func (*Syncer) DeleteSSLCert

func (s *Syncer) DeleteSSLCert() error

DeleteSSLCert deletes the ssl certs that EnsureSSLCert would have created. See the interface for more details.

func (*Syncer) EnsureSSLCert

func (s *Syncer) EnsureSSLCert(lbName string, ing *v1beta1.Ingress, client kubeclient.Interface, forceUpdate bool) (string, error)

EnsureSSLCert ensures that the required ssl certs exist for the given ingress. See the interface for more details.

type SyncerInterface

type SyncerInterface interface {
	// EnsureSSLCert ensures that the required ssl cert exists for the given ingress.
	// Will only change an existing SSL cert if forceUpdate=True.
	// Returns the self link for the ensured ssl cert.
	EnsureSSLCert(lbName string, ing *v1beta1.Ingress, client kubeclient.Interface, forceUpdate bool) (string, error)
	// DeleteSSLCert deletes the ssl cert that EnsureSSLCert would have created.
	DeleteSSLCert() error
}

SyncerInterface is an interface to manage GCP ssl certs.

func NewFakeSSLCertSyncer

func NewFakeSSLCertSyncer() SyncerInterface

NewFakeSSLCertSyncer returns a new instance of the fake syncer.

func NewSSLCertSyncer

func NewSSLCertSyncer(namer *utilsnamer.Namer, scp ingresslb.LoadBalancers) SyncerInterface

NewSSLCertSyncer returns a new instance of syncer.

Jump to

Keyboard shortcuts

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