Documentation
¶
Index ¶
- Variables
- type Gitops
- type Message
- type Meta
- func (m *Meta) DeleteLabel(key string)
- func (m *Meta) GetGroup() string
- func (m *Meta) GetLabel(key string) (string, bool)
- func (m *Meta) GetLabels() map[string]string
- func (m *Meta) GetName() string
- func (m *Meta) GetRuntime() *Runtime
- func (m *Meta) SetGroup(group string)
- func (m *Meta) SetLabel(key, value string)
- func (m *Meta) SetLabels(labels map[string]string)
- func (m *Meta) SetName(name string)
- func (m *Meta) SetRuntime(runtime *Runtime)
- type Opts
- type Owner
- type Runtime
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var GITOPS_DRIFTED = "drifted"
View Source
var GITOPS_ERROR = "error"
View Source
var GITOPS_MISSING = "missing"
View Source
var GITOPS_NOTOWNER = "notowner"
View Source
var GITOPS_SYNCED = "synced"
Functions ¶
This section is empty.
Types ¶
type Gitops ¶ added in v0.1.30
type Gitops struct {
Synced bool `json:"synced,omitempty" yaml:"synced,omitempty"`
Drifted bool `json:"drifted,omitempty" yaml:"drifted,omitempty"`
Missing bool `json:"missing,omitempty" yaml:"missing,omitempty"`
NotOwner bool `json:"notOwner,omitempty" yaml:"notOwner,omitempty"`
Error bool `json:"error,omitempty" yaml:"error,omitempty"`
State string `json:"state,omitempty" yaml:"state,omitempty"`
Messages []Message `json:"messages,omitempty" yaml:"messages,omitempty"`
Commit plumbing.Hash `json:"commit,omitempty" yaml:"commit,omitempty"`
Changes []jsondiff.Operation `json:"changes,omitempty" yaml:"changes,omitempty"`
LastSync time.Time `json:"lastSync,omitempty" yaml:"lastSync,omitempty"`
}
func (*Gitops) AddMessage ¶ added in v0.1.31
type Meta ¶ added in v0.0.137
type Meta struct {
Group string `json:"group" yaml:"group" validate:"required"`
Name string `json:"name" yaml:"name" validate:"required"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Runtime *Runtime `json:"runtime,omitempty" yaml:"runtime,omitempty"`
}
func (*Meta) DeleteLabel ¶ added in v0.1.56
func (*Meta) GetRuntime ¶ added in v0.1.56
func (*Meta) SetRuntime ¶ added in v0.1.56
type Owner ¶
type Runtime ¶
type Runtime struct {
Owner *Owner `json:"owner,omitempty" yaml:"owner,omitempty"`
Node uint64 `json:"node,omitempty" yaml:"node,omitempty"`
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
}
func (*Runtime) GetNodeName ¶ added in v0.0.128
func (*Runtime) SetNodeName ¶ added in v0.0.128
Click to show internal directories.
Click to hide internal directories.