Documentation ¶
Index ¶
- Constants
- func InitMock(clientset kubernetes.Interface, namespace string)
- type Mock
- func (m *Mock) DeleteMockData(ctx context.Context) error
- func (m *Mock) GetAvailableReleases(ctx context.Context) ([]MockRelease, error)
- func (m *Mock) GetCurrentRelease(ctx context.Context) (*MockRelease, error)
- func (m *Mock) GetDeployedReleases(ctx context.Context) ([]MockRelease, error)
- func (m *Mock) GetMockData(ctx context.Context) (*MockData, error)
- func (m *Mock) HasMockData(ctx context.Context, dataKey string) (bool, error)
- func (m *Mock) SetMockData(ctx context.Context, mockData MockData) error
- type MockData
- type MockRelease
Constants ¶
View Source
const ( CurrentReleaseMockKey = "currentRelease" DeployedReleasesMockKey = "deployedReleases" AvailableReleasesMockKey = "availableReleases" )
Variables ¶
This section is empty.
Functions ¶
func InitMock ¶
func InitMock(clientset kubernetes.Interface, namespace string)
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func MustGetMock ¶
func MustGetMock() *Mock
func (*Mock) GetAvailableReleases ¶
func (m *Mock) GetAvailableReleases(ctx context.Context) ([]MockRelease, error)
func (*Mock) GetCurrentRelease ¶
func (m *Mock) GetCurrentRelease(ctx context.Context) (*MockRelease, error)
func (*Mock) GetDeployedReleases ¶
func (m *Mock) GetDeployedReleases(ctx context.Context) ([]MockRelease, error)
func (*Mock) HasMockData ¶
type MockData ¶
type MockData struct { CurrentRelease *MockRelease `json:"currentRelease,omitempty"` DeployedReleases []MockRelease `json:"deployedReleases,omitempty"` AvailableReleases []MockRelease `json:"availableReleases,omitempty"` }
type MockRelease ¶
type MockRelease struct { VersionLabel string `json:"versionLabel"` ChannelID string `json:"channelID"` ChannelName string `json:"channelName"` IsRequired bool `json:"isRequired"` ReleaseNotes string `json:"releaseNotes"` HelmReleaseName string `json:"helmReleaseName,omitempty"` HelmReleaseRevision int `json:"helmReleaseRevision,omitempty"` HelmReleaseNamespace string `json:"helmReleaseNamespace,omitempty"` }
Click to show internal directories.
Click to hide internal directories.