Documentation ¶
Index ¶
- type BigbangOutput
- type CheckStatusOutput
- type CheckStepOutput
- type CrdPolicyOutput
- type FluxOutput
- type HelmOutput
- type HelmReleaseOutput
- type HelmReleaseTableOutput
- type HostsOutput
- type K3dOutput
- type Output
- type PackageVersion
- type PolicyListOutput
- type PolicyOutput
- type PreflightCheckOutput
- type ShellProfileOutput
- type StatusOutput
- type VersionOutput
- type Violation
- type ViolationsOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigbangOutput ¶
type BigbangOutput struct {
Data HelmOutput
}
func (*BigbangOutput) EncodeJSON ¶
func (o *BigbangOutput) EncodeJSON() ([]byte, error)
func (*BigbangOutput) EncodeText ¶
func (o *BigbangOutput) EncodeText() ([]byte, error)
func (*BigbangOutput) EncodeYAML ¶
func (o *BigbangOutput) EncodeYAML() ([]byte, error)
func (*BigbangOutput) String ¶
func (o *BigbangOutput) String() string
type CheckStatusOutput ¶
type CheckStatusOutput struct { Name string `json:"name" yaml:"name"` Output []string `json:"output" yaml:"output"` }
func (*CheckStatusOutput) EncodeJSON ¶
func (cso *CheckStatusOutput) EncodeJSON() ([]byte, error)
func (*CheckStatusOutput) EncodeText ¶
func (cso *CheckStatusOutput) EncodeText() ([]byte, error)
func (*CheckStatusOutput) EncodeYAML ¶
func (cso *CheckStatusOutput) EncodeYAML() ([]byte, error)
Outputable interface implementations
func (*CheckStatusOutput) String ¶
func (cso *CheckStatusOutput) String() string
type CheckStepOutput ¶
type CheckStepOutput struct { Name string `json:"name" yaml:"name"` Output []string `json:"output" yaml:"output"` Status string `json:"status" yaml:"status"` }
func (*CheckStepOutput) EncodeJSON ¶
func (cso *CheckStepOutput) EncodeJSON() ([]byte, error)
func (*CheckStepOutput) EncodeText ¶
func (cso *CheckStepOutput) EncodeText() ([]byte, error)
func (*CheckStepOutput) EncodeYAML ¶
func (cso *CheckStepOutput) EncodeYAML() ([]byte, error)
Outputable interface implementations
func (*CheckStepOutput) String ¶
func (cso *CheckStepOutput) String() string
type CrdPolicyOutput ¶
type CrdPolicyOutput struct { CrdName string `json:"crdName" yaml:"crdName"` Policies []PolicyOutput `json:"policies" yaml:"policies"` Message string `json:"message" yaml:"message"` }
type FluxOutput ¶
type FluxOutput struct {
Data Output
}
func (*FluxOutput) EncodeJSON ¶
func (fo *FluxOutput) EncodeJSON() ([]byte, error)
func (*FluxOutput) EncodeText ¶
func (fo *FluxOutput) EncodeText() ([]byte, error)
func (*FluxOutput) EncodeYAML ¶
func (fo *FluxOutput) EncodeYAML() ([]byte, error)
func (*FluxOutput) String ¶
func (fo *FluxOutput) String() string
type HelmOutput ¶
type HelmOutput struct { Message string `json:"message" yaml:"message"` Name string `json:"name" yaml:"name"` LastDeployed string `json:"lastDeployed" yaml:"lastDeployed"` Namespace string `json:"namespace" yaml:"namespace"` Status string `json:"status" yaml:"status"` Revision string `json:"revision" yaml:"revision"` TestSuite string `json:"testSuite" yaml:"testSuite"` Notes string `json:"notes" yaml:"notes"` }
type HelmReleaseOutput ¶
type HelmReleaseOutput struct { Name string `json:"name" yaml:"name"` Namespace string `json:"namespace" yaml:"namespace"` Revision int `json:"revision" yaml:"revision"` Status string `json:"status" yaml:"status"` Chart string `json:"chart" yaml:"chart"` AppVersion string `json:"appVersion" yaml:"appVersion"` }
type HelmReleaseTableOutput ¶
type HelmReleaseTableOutput struct {
Releases []HelmReleaseOutput `json:"releases" yaml:"releases"`
}
func (*HelmReleaseTableOutput) EncodeJSON ¶
func (hrto *HelmReleaseTableOutput) EncodeJSON() ([]byte, error)
func (*HelmReleaseTableOutput) EncodeText ¶
func (hrto *HelmReleaseTableOutput) EncodeText() ([]byte, error)
func (*HelmReleaseTableOutput) EncodeYAML ¶
func (hrto *HelmReleaseTableOutput) EncodeYAML() ([]byte, error)
type HostsOutput ¶
func (*HostsOutput) EncodeJSON ¶
func (o *HostsOutput) EncodeJSON() ([]byte, error)
func (*HostsOutput) EncodeText ¶
func (o *HostsOutput) EncodeText() ([]byte, error)
func (*HostsOutput) EncodeYAML ¶
func (o *HostsOutput) EncodeYAML() ([]byte, error)
type K3dOutput ¶
type K3dOutput struct {
Data Output `json:"data" yaml:"data"`
}
func (*K3dOutput) EncodeJSON ¶
func (*K3dOutput) EncodeText ¶
func (*K3dOutput) EncodeYAML ¶
type PackageVersion ¶
type PackageVersion struct { Version string LatestVersion string UpdateAvailable bool SHAsMatch string }
func (*PackageVersion) EncodeJSON ¶
func (v *PackageVersion) EncodeJSON() ([]byte, error)
func (*PackageVersion) EncodeText ¶
func (v *PackageVersion) EncodeText() ([]byte, error)
func (*PackageVersion) EncodeYAML ¶
func (v *PackageVersion) EncodeYAML() ([]byte, error)
func (*PackageVersion) String ¶
func (v *PackageVersion) String() string
func (PackageVersion) ToMap ¶
func (v PackageVersion) ToMap() map[string]any
ToMap converts a PackageVersion to a map[string]any and does some internal filtering to remove fields that are empty or are not set
type PolicyListOutput ¶
type PolicyListOutput struct { Messages []string `json:"messages" yaml:"messages"` CrdPolicies []CrdPolicyOutput `json:"crdPolicies" yaml:"crdPolicies"` }
func (*PolicyListOutput) EncodeJSON ¶
func (plo *PolicyListOutput) EncodeJSON() ([]byte, error)
func (*PolicyListOutput) EncodeText ¶
func (plo *PolicyListOutput) EncodeText() ([]byte, error)
func (*PolicyListOutput) EncodeYAML ¶
func (plo *PolicyListOutput) EncodeYAML() ([]byte, error)
type PolicyOutput ¶
type PreflightCheckOutput ¶
type PreflightCheckOutput struct { Name string `json:"name" yaml:"name"` Steps []CheckStepOutput `json:"steps" yaml:"steps"` }
func (*PreflightCheckOutput) EncodeJSON ¶
func (pco *PreflightCheckOutput) EncodeJSON() ([]byte, error)
func (*PreflightCheckOutput) EncodeText ¶
func (pco *PreflightCheckOutput) EncodeText() ([]byte, error)
func (*PreflightCheckOutput) EncodeYAML ¶
func (pco *PreflightCheckOutput) EncodeYAML() ([]byte, error)
Outputable interface implementations
type ShellProfileOutput ¶
type ShellProfileOutput struct { KubeConfig string `json:"kubeconfig" yaml:"kubeconfig"` K3DPublicIP string `json:"publicIp" yaml:"publicIp"` K3DPrivateIP string `json:"privateIp" yaml:"privateIp"` }
func (*ShellProfileOutput) EncodeJSON ¶
func (o *ShellProfileOutput) EncodeJSON() ([]byte, error)
func (*ShellProfileOutput) EncodeText ¶
func (o *ShellProfileOutput) EncodeText() ([]byte, error)
func (*ShellProfileOutput) EncodeYAML ¶
func (o *ShellProfileOutput) EncodeYAML() ([]byte, error)
type StatusOutput ¶
type StatusOutput struct { Name string `json:"name" yaml:"name"` Statuses []CheckStatusOutput `json:"statuses" yaml:"statuses"` }
func (*StatusOutput) EncodeJSON ¶
func (so *StatusOutput) EncodeJSON() ([]byte, error)
func (*StatusOutput) EncodeText ¶
func (so *StatusOutput) EncodeText() ([]byte, error)
func (*StatusOutput) EncodeYAML ¶
func (so *StatusOutput) EncodeYAML() ([]byte, error)
Outputable interface implementations
type VersionOutput ¶
type VersionOutput map[string]PackageVersion
func (*VersionOutput) EncodeJSON ¶
func (vo *VersionOutput) EncodeJSON() ([]byte, error)
func (*VersionOutput) EncodeText ¶
func (vo *VersionOutput) EncodeText() ([]byte, error)
func (*VersionOutput) EncodeYAML ¶
func (vo *VersionOutput) EncodeYAML() ([]byte, error)
func (VersionOutput) ToMap ¶
func (vo VersionOutput) ToMap() map[string]any
type Violation ¶
type Violation struct { Name string `json:"name" yaml:"name"` Kind string `json:"kind" yaml:"kind"` Namespace string `json:"namespace" yaml:"namespace"` Policy string `json:"policy" yaml:"policy"` Constraint string `json:"constraint" yaml:"constraint"` Message string `json:"message" yaml:"message"` Action string `json:"action" yaml:"action"` Timestamp string `json:"timestamp" yaml:"timestamp"` // UTC time }
func (*Violation) EncodeJSON ¶
func (*Violation) EncodeText ¶
func (*Violation) EncodeYAML ¶
type ViolationsOutput ¶
type ViolationsOutput struct { Name string `json:"name" yaml:"name"` Violations []Violation `json:"violations" yaml:"violations"` }
func (*ViolationsOutput) EncodeJSON ¶
func (vo *ViolationsOutput) EncodeJSON() ([]byte, error)
func (*ViolationsOutput) EncodeText ¶
func (vo *ViolationsOutput) EncodeText() ([]byte, error)
func (*ViolationsOutput) EncodeYAML ¶
func (vo *ViolationsOutput) EncodeYAML() ([]byte, error)
func (*ViolationsOutput) String ¶
func (vo *ViolationsOutput) String() string
Click to show internal directories.
Click to hide internal directories.