cache

package
v0.5.46 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TypeImageCache string = "image_cache"

TypeContainer is the resource string for a Container resource

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageCache

type ImageCache struct {
	// embedded type holding name, etc
	types.ResourceMetadata `hcl:",remain"`

	Networks []string `json:"networks" state:"true"` // Attach to the correct network // only when Image is specified
}

Container defines a structure for creating Docker containers

type Provider

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

func (*Provider) Changed

func (p *Provider) Changed() (bool, error)

func (*Provider) Create

func (p *Provider) Create() error

func (*Provider) Destroy

func (p *Provider) Destroy() error

func (*Provider) Init

func (p *Provider) Init(cfg htypes.Resource, l logger.Logger) error

func (*Provider) Lookup

func (p *Provider) Lookup() ([]string, error)

func (*Provider) Refresh

func (p *Provider) Refresh() error

Refresh is called whenever any Network resources are added or removed in Shipyard this is because we need to ensure that the cache is attached to all networks so that it can work with any clusters that may be on those networks.

Jump to

Keyboard shortcuts

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