ssl

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package ssl provides operations for manipulating SslCertificate GCE resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeSslCertificate added in v1.0.0

func NewFakeSslCertificate(name, status string, domainToStatus map[string]string) *computev1.SslCertificate

Types

type Builder added in v1.0.0

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

Builder

func NewFake added in v1.0.0

func NewFake() *Builder

func (*Builder) AddEntry added in v1.0.0

func (b *Builder) AddEntry(name string, domains []string) *Builder

func (*Builder) AddEntryWithStatus added in v1.0.0

func (b *Builder) AddEntryWithStatus(name, status string, domainToStatus map[string]string) *Builder

func (*Builder) Build added in v1.0.0

func (b *Builder) Build() Interface

type Error added in v1.0.0

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

func NewFakeQuotaExceededError added in v1.0.0

func NewFakeQuotaExceededError() *Error

func (*Error) Error added in v1.0.0

func (e *Error) Error() string

func (*Error) IsQuotaExceeded added in v1.0.0

func (e *Error) IsQuotaExceeded() bool

type Fake added in v1.0.0

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

Fake

func (*Fake) Create added in v1.0.0

func (f *Fake) Create(ctx context.Context, name string, domains []string) error

func (*Fake) Delete added in v1.0.0

func (f *Fake) Delete(ctx context.Context, name string) error

func (*Fake) Get added in v1.0.0

func (f *Fake) Get(name string) (*computev1.SslCertificate, error)

func (*Fake) List added in v1.0.0

func (f *Fake) List() ([]*computev1.SslCertificate, error)

type Interface added in v1.0.0

type Interface interface {
	// Create creates a new SslCertificate resource.
	Create(ctx context.Context, name string, domains []string) error
	// Delete deletes an SslCertificate resource.
	Delete(ctx context.Context, name string) error
	// Get fetches an SslCertificate resource.
	Get(name string) (*computev1.SslCertificate, error)
	// List fetches all SslCertificate resources.
	List() ([]*computev1.SslCertificate, error)
}

Interface exposes operations for manipulating SslCertificate resources.

func New

func New(client *http.Client, projectID string) (Interface, error)

Jump to

Keyboard shortcuts

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