cloudrun

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	GetState(appID string) (State, bool)
	GetServiceManifest(appID string) (provider.ServiceManifest, bool)

	WaitForReady(ctx context.Context, timeout time.Duration) error
}

type State

type State struct {
	Resources []*model.CloudRunResourceState
	Version   model.ApplicationLiveStateVersion
}

type Store

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

func NewStore

func NewStore(ctx context.Context, cfg *config.PlatformProviderCloudRunConfig, platformProvider string, logger *zap.Logger) (*Store, error)

func (*Store) GetServiceManifest

func (s *Store) GetServiceManifest(appID string) (provider.ServiceManifest, bool)

func (*Store) GetState

func (s *Store) GetState(appID string) (State, bool)

func (*Store) Run

func (s *Store) Run(ctx context.Context) error

func (*Store) WaitForReady

func (s *Store) WaitForReady(ctx context.Context, timeout time.Duration) error

Jump to

Keyboard shortcuts

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