Documentation
¶
Index ¶
- Variables
- type AmpCluster
- type CellsAction
- type CellsStorage
- type Client
- func (c *Client) GetPipeline(id int) (*Pipeline, error)
- func (c *Client) ListCells(ring Ring) ([]*cell.Cell, error)
- func (c *Client) Patch(ring Ring, buff []byte) error
- func (c *Client) RemoveCell(ring Ring, model *cell.Cell) error
- func (c *Client) RingDeployment(ring Ring, onlyGitlabUpgrades bool) (*Pipeline, error)
- func (c *Client) TearDownCell(ring Ring, cell *cell.Cell) (*Pipeline, error)
- func (c *Client) UploadCell(ring Ring, model *cell.Cell) error
- func (c *Client) UploadCells(ring Ring, cells []*cell.Cell, commitMsg string) error
- type Cluster
- type ClusterRing
- type Config
- type LocalDiskStorage
- type Pipeline
- type Ring
- type UnknownActionError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCastToGitlabStorage = errors.New("cannot cast storage to gitlabCellsStorage")
View Source
var ErrUnknownAmp = errors.New("unknown APM cluster")
Functions ¶
This section is empty.
Types ¶
type AmpCluster ¶
type AmpCluster string
const ( TestCluster AmpCluster = AmpCluster("test") DevCluster AmpCluster = AmpCluster("cellsdev") ProdCluster AmpCluster = AmpCluster("cellsprod") )
func WellKnownAmpCluster ¶
func WellKnownAmpCluster(name string) (AmpCluster, error)
func WellKnownAmpClusters ¶
func WellKnownAmpClusters() []AmpCluster
func (*AmpCluster) Ring ¶
func (a *AmpCluster) Ring(nr uint) *ClusterRing
func (*AmpCluster) RingsPath ¶
func (a *AmpCluster) RingsPath() string
type CellsAction ¶
type CellsAction gitlab.FileActionValue
const ( CreateCells CellsAction = CellsAction(gitlab.FileCreate) EditCells CellsAction = CellsAction(gitlab.FileUpdate) DeleteCell CellsAction = CellsAction(gitlab.FileDelete) )
type CellsStorage ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RingDeployment ¶
func (*Client) TearDownCell ¶
type Cluster ¶
type Cluster interface {
RingsPath() string
Ring(nr uint) *ClusterRing
}
type ClusterRing ¶
func (*ClusterRing) AmpCluster ¶
func (r *ClusterRing) AmpCluster() string
func (*ClusterRing) CellPath ¶
func (r *ClusterRing) CellPath(fileName string) string
func (*ClusterRing) Number ¶
func (r *ClusterRing) Number() uint
func (*ClusterRing) Path ¶
func (r *ClusterRing) Path() string
func (*ClusterRing) String ¶
func (r *ClusterRing) String() string
type LocalDiskStorage ¶
type LocalDiskStorage struct {
}
func (*LocalDiskStorage) Update ¶
func (l *LocalDiskStorage) Update(ring Ring, cells []*cell.Cell, action CellsAction, commitMsg string) error
type UnknownActionError ¶
type UnknownActionError struct {
Action CellsAction
}
func (*UnknownActionError) Error ¶
func (e *UnknownActionError) Error() string
Click to show internal directories.
Click to hide internal directories.