Documentation ¶
Index ¶
- func NewService() service.Service
- type Component
- func (c Component) AddonPath() string
- func (c Component) CAPath() string
- func (c Component) CertificatePath() string
- func (c Component) CertificatesServiceName() string
- func (c Component) CertificatesServicePath() string
- func (c Component) CertificatesTimerName() string
- func (c Component) CertificatesTimerPath() string
- func (c Component) HasTimer() bool
- func (c Component) IsManifest() bool
- func (c Component) JobID(clusterID string) string
- func (c Component) KeyPath() string
- func (c Component) KubeConfigPath() string
- func (c Component) ManifestName() string
- func (c Component) ManifestPath() string
- func (c Component) MasterOnly() bool
- func (c Component) Name() string
- func (c Component) RestartCommand() string
- func (c Component) ServiceName() string
- func (c Component) ServicePath() string
- func (c Component) String() string
- func (c Component) TimerName() string
- func (c Component) TimerPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func NewManifestComponent ¶
NewManifestComponent creates a new component that runs in a static pod inside kubelet
func NewServiceAndTimerComponent ¶
NewServiceAndTimerComponent creates a new component that runs in a systemd service & timer
func NewServiceComponent ¶
NewServiceComponent creates a new component that runs in a systemd service
func (Component) AddonPath ¶
AddonPath returns the full path of the file containing the addon that runs the component.
func (Component) CertificatePath ¶
CertificatePath returns the full path of the public key part of the certificate for this component.
func (Component) CertificatesServiceName ¶
CertificatesServiceName returns the name of the systemd service that generates the TLS certificates for the component.
func (Component) CertificatesServicePath ¶
CertificatesServicePath returns the full path of the file containing the systemd service that generates the TLS certificates for the component.
func (Component) CertificatesTimerName ¶
CertificatesTimerName returns the name of the systemd timer that generates the TLS certificates for the component.
func (Component) CertificatesTimerPath ¶
CertificatesTimerPath returns the full path of the file containing the systemd timer that generates the TLS certificates for the component.
func (Component) HasTimer ¶
HasTimer returns true if this component is deployed as a systemd service + timer.
func (Component) IsManifest ¶
IsManifest returns true if this component is deployed as a static pod inside kubelet using a manifest.
func (Component) JobID ¶
JobID returns the ID of the vault-monkey job used to access certificates for this component.
func (Component) KeyPath ¶
KeyPath returns the full path of the private key part of the certificate for this component.
func (Component) KubeConfigPath ¶
KubeConfigPath returns the full path of the kubeconfig configuration file for this component.
func (Component) ManifestName ¶
ManifestName returns the name of the static pod manifest that runs the component.
func (Component) ManifestPath ¶
ManifestPath returns the full path of the file containing the static pod manifest that runs the component.
func (Component) MasterOnly ¶
MasterOnly returns true if this component should only be deployed on master nodes.
func (Component) RestartCommand ¶
RestartCommand returns a full command that restarts the component
func (Component) ServiceName ¶
ServiceName returns the name of the systemd service that runs the component.
func (Component) ServicePath ¶
ServicePath returns the full path of the file containing the systemd service that runs the component.