Documentation ¶
Overview ¶
Copyright 2017 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
This is adapted from https://github.com/kelseyhightower/gcscache/, which is MIT-licensed.
Index ¶
- type Bucket
- func (b *Bucket) DeleteService(ctx context.Context, name string) error
- func (b *Bucket) GetService(ctx context.Context, name string) (yeoman.ServiceOpts, error)
- func (b *Bucket) GetServices(ctx context.Context) (map[string]yeoman.ServiceOpts, error)
- func (b *Bucket) SetService(ctx context.Context, serviceOpts yeoman.ServiceOpts) error
- func (b *Bucket) SetServices(ctx context.Context, opts map[string]yeoman.ServiceOpts) error
- type Cache
- type GCP
- func (g *GCP) CreateStaticIP(ctx context.Context, log *slog.Logger, name string, typ yeoman.IPType) (yeoman.IP, error)
- func (g *GCP) CreateVM(ctx context.Context, log *slog.Logger, vm yeoman.VM) error
- func (g *GCP) DeleteVM(ctx context.Context, log *slog.Logger, name string) error
- func (g *GCP) GetAllVMs(ctx context.Context, log *slog.Logger) ([]yeoman.VM, error)
- func (g *GCP) GetStaticIPs(ctx context.Context, log *slog.Logger) (yeoman.StaticIPs, error)
- func (g *GCP) GetVM(ctx context.Context, log *slog.Logger, name string) (yeoman.VM, error)
- func (g *GCP) RestartVM(ctx context.Context, log *slog.Logger, vm yeoman.VM) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func (*Bucket) DeleteService ¶
func (*Bucket) GetService ¶
func (*Bucket) GetServices ¶
func (*Bucket) SetService ¶
func (*Bucket) SetServices ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache implements the autocert.Cache interface using Google Cloud Storage.
func NewCache ¶
NewCache creates and initializes a new Cache backed by the given Google Cloud Storage bucket.
Click to show internal directories.
Click to hide internal directories.