Documentation ¶
Index ¶
- Constants
- type CachedTemplateInfo
- type CloudOptions
- type CommonInfo
- type DockerOptions
- type DockerProviderInfo
- type GitTemplateInfo
- type Image
- type KubeOptions
- type KubeProviderInfo
- type Labels
- func (l Labels) AddDefaultGit(url, revision, dir string) Labels
- func (l Labels) AddDefaultLocal() Labels
- func (l Labels) AddGit(path string, commit string) Labels
- func (l Labels) AddLabel(key string, value string) Labels
- func (l Labels) AddLabels(labels Labels) Labels
- func (l Labels) AddLocal(path string) Labels
- func (l Labels) AddSidecarMain(containerName string) Labels
- func (l Labels) Exist(name string) (string, error)
- func (l Labels) ToCachedTemplateInfo() *CachedTemplateInfo
- func (l Labels) ToGitTemplateInfo() *GitTemplateInfo
- type NetworkVpnInfo
- type Parameters
- type ShareDirInfo
- type SidecarInfo
- type SidecarShareInjectOpts
- type SidecarShareUploadOpts
- type SidecarVpnInjectOpts
- type StreamOptions
Constants ¶
View Source
const ( DockerProvider = "docker" KubernetesProvider = "kube" CloudProvider = "cloud" SidecarPrefixName = "sidecar-" SidecarVpnImageName = "hckops/alpine-openvpn:latest" SidecarVpnPrivilegedImageName = "hckops/alpine-openvpn-privileged:latest" )
View Source
const ( LabelSchemaKind = "com.hckops.schema.kind" LabelTemplateLocal = "com.hckops.template.local" LabelTemplateRemote = "com.hckops.template.remote" // TODO not used LabelTemplateGit = "com.hckops.template.git" LabelTemplateGitUrl = "com.hckops.template.git.url" LabelTemplateGitRevision = "com.hckops.template.git.revision" LabelTemplateGitCommit = "com.hckops.template.git.commit" LabelTemplateGitDir = "com.hckops.template.git.dir" LabelTemplateGitName = "com.hckops.template.git.name" LabelTemplateCachePath = "com.hckops.template.cache.path" LabelSidecarMain = "com.hckops.sidecar.main" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedTemplateInfo ¶
type CachedTemplateInfo struct {
Path string
}
type CloudOptions ¶
type CommonInfo ¶ added in v0.12.0
type CommonInfo struct { NetworkVpn *NetworkVpnInfo }
type DockerOptions ¶
type DockerProviderInfo ¶
type GitTemplateInfo ¶
type Image ¶ added in v0.10.0
func (*Image) ResolveVersion ¶ added in v0.10.0
type KubeOptions ¶
type KubeProviderInfo ¶
type KubeProviderInfo struct {
Namespace string
}
type Labels ¶
func NewSidecarLabels ¶ added in v0.11.0
func NewSidecarLabels() Labels
func (Labels) AddDefaultGit ¶
func (Labels) AddDefaultLocal ¶
func (Labels) AddSidecarMain ¶ added in v0.11.0
func (Labels) ToCachedTemplateInfo ¶
func (l Labels) ToCachedTemplateInfo() *CachedTemplateInfo
func (Labels) ToGitTemplateInfo ¶
func (l Labels) ToGitTemplateInfo() *GitTemplateInfo
type NetworkVpnInfo ¶ added in v0.12.0
type Parameters ¶ added in v0.10.0
type ShareDirInfo ¶ added in v0.12.0
type ShareDirInfo struct {}
type SidecarInfo ¶ added in v0.11.0
type SidecarShareInjectOpts ¶ added in v0.12.0
type SidecarShareInjectOpts struct {}
type SidecarShareUploadOpts ¶ added in v0.12.0
type SidecarShareUploadOpts struct {}
type SidecarVpnInjectOpts ¶ added in v0.12.0
type SidecarVpnInjectOpts struct { Name string // containerName for docker and podName for kube NetworkVpn *NetworkVpnInfo }
type StreamOptions ¶ added in v0.10.0
type StreamOptions struct { In io.ReadCloser Out io.Writer Err io.Writer IsTty bool // tty is false for ssh tunnel or logs }
func NewStdStreamOpts ¶ added in v0.10.0
func NewStdStreamOpts(tty bool) *StreamOptions
Click to show internal directories.
Click to hide internal directories.