store

package
v1.0.0-beta.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitInMemory

func InitInMemory(options InitInMemoryStoreOptions)

func SetStore

func SetStore(s Store)

Types

type InMemoryStore

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

func (*InMemoryStore) GetAppID

func (s *InMemoryStore) GetAppID() string

func (*InMemoryStore) GetAppName

func (s *InMemoryStore) GetAppName() string

func (*InMemoryStore) GetAppSlug

func (s *InMemoryStore) GetAppSlug() string

func (*InMemoryStore) GetAppStatus

func (s *InMemoryStore) GetAppStatus() appstatetypes.AppStatus

func (*InMemoryStore) GetChannelID

func (s *InMemoryStore) GetChannelID() string

func (*InMemoryStore) GetChannelName

func (s *InMemoryStore) GetChannelName() string

func (*InMemoryStore) GetChannelSequence

func (s *InMemoryStore) GetChannelSequence() int64

func (*InMemoryStore) GetLicense

func (s *InMemoryStore) GetLicense() *kotsv1beta1.License

func (*InMemoryStore) GetLicenseFields

func (s *InMemoryStore) GetLicenseFields() sdklicensetypes.LicenseFields

func (*InMemoryStore) GetNamespace

func (s *InMemoryStore) GetNamespace() string

func (*InMemoryStore) GetReleaseCreatedAt

func (s *InMemoryStore) GetReleaseCreatedAt() string

func (*InMemoryStore) GetReleaseNotes

func (s *InMemoryStore) GetReleaseNotes() string

func (*InMemoryStore) GetReleaseSequence

func (s *InMemoryStore) GetReleaseSequence() int64

func (*InMemoryStore) GetReplicatedAppEndpoint

func (s *InMemoryStore) GetReplicatedAppEndpoint() string

func (*InMemoryStore) GetReplicatedID

func (s *InMemoryStore) GetReplicatedID() string

func (*InMemoryStore) GetUpdates

func (s *InMemoryStore) GetUpdates() []upstreamtypes.ChannelRelease

func (*InMemoryStore) GetVersionLabel

func (s *InMemoryStore) GetVersionLabel() string

func (*InMemoryStore) IsDevLicense

func (s *InMemoryStore) IsDevLicense() bool

func (*InMemoryStore) SetAppStatus

func (s *InMemoryStore) SetAppStatus(status appstatetypes.AppStatus)

func (*InMemoryStore) SetLicense

func (s *InMemoryStore) SetLicense(license *kotsv1beta1.License)

func (*InMemoryStore) SetLicenseFields

func (s *InMemoryStore) SetLicenseFields(licenseFields sdklicensetypes.LicenseFields)

func (*InMemoryStore) SetUpdates

func (s *InMemoryStore) SetUpdates(updates []upstreamtypes.ChannelRelease)

type InitInMemoryStoreOptions

type InitInMemoryStoreOptions struct {
	ReplicatedID          string
	AppID                 string
	License               *kotsv1beta1.License
	LicenseFields         sdklicensetypes.LicenseFields
	AppName               string
	ChannelID             string
	ChannelName           string
	ChannelSequence       int64
	ReleaseSequence       int64
	ReleaseCreatedAt      string
	ReleaseNotes          string
	VersionLabel          string
	ReplicatedAppEndpoint string
	Namespace             string
}

type Store

type Store interface {
	GetReplicatedID() string
	GetAppID() string
	GetLicense() *kotsv1beta1.License
	SetLicense(license *kotsv1beta1.License)
	GetLicenseFields() sdklicensetypes.LicenseFields
	SetLicenseFields(licenseFields sdklicensetypes.LicenseFields)
	IsDevLicense() bool
	GetAppSlug() string
	GetAppName() string
	GetChannelID() string
	GetChannelName() string
	GetChannelSequence() int64
	GetReleaseSequence() int64
	GetReleaseCreatedAt() string
	GetReleaseNotes() string
	GetVersionLabel() string
	GetReplicatedAppEndpoint() string
	GetNamespace() string
	GetAppStatus() appstatetypes.AppStatus
	SetAppStatus(status appstatetypes.AppStatus)
	GetUpdates() []upstreamtypes.ChannelRelease
	SetUpdates(updates []upstreamtypes.ChannelRelease)
}

func GetStore

func GetStore() Store

Directories

Path Synopsis
Package mock_store is a generated GoMock package.
Package mock_store is a generated GoMock package.

Jump to

Keyboard shortcuts

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