Documentation
¶
Overview ¶
Copyright 2024 iLogtail Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 iLogtail Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2024 iLogtail Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func ExposePort(ctx context.Context, source, target string) (context.Context, error)
- func InitEnv(ctx context.Context, envType string) (context.Context, error)
- func Mkdir(ctx context.Context, dir string) (context.Context, error)
- func MountVolume(ctx context.Context, source, target string) (context.Context, error)
- func RunCommandOnLoongCollector(ctx context.Context, command string) (context.Context, error)
- func RunCommandOnSource(ctx context.Context, command string) (context.Context, error)
- func SetAgentPID(ctx context.Context) (context.Context, error)
- func SetDockerComposeBootType(t dockercompose.BootType) error
- func SetDockerComposeDependOn(ctx context.Context, dependOnContainers string) (context.Context, error)
- func StartDockerComposeEnv(ctx context.Context, dependencyName string) (context.Context, error)
- func SwitchCurrentWorkingDeployment(ctx context.Context, deploymentName string) (context.Context, error)
- type DockerComposeEnv
- func (d *DockerComposeEnv) Clean() error
- func (d *DockerComposeEnv) ExecOnLoongCollector(command string) (string, error)
- func (d *DockerComposeEnv) ExecOnSource(ctx context.Context, command string) (string, error)
- func (d *DockerComposeEnv) GetData() (*protocol.LogGroup, error)
- func (d *DockerComposeEnv) GetType() string
- type HostEnv
- type K8sEnv
- func (k *K8sEnv) AddFilter(deploymentName string, filter controller.ContainerFilter) error
- func (k *K8sEnv) Apply(filePath string) error
- func (k *K8sEnv) Delete(filePath string) error
- func (k *K8sEnv) ExecOnLoongCollector(command string) (string, error)
- func (k *K8sEnv) ExecOnSource(ctx context.Context, command string) (string, error)
- func (k *K8sEnv) GetType() string
- func (k *K8sEnv) RemoveFilter(deploymentName string, filter controller.ContainerFilter) error
- func (k *K8sEnv) Scale(deploymentName string, namespace string, replicas int) error
- type TestEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExposePort ¶
func MountVolume ¶
func RunCommandOnSource ¶
func SetDockerComposeBootType ¶
func SetDockerComposeBootType(t dockercompose.BootType) error
func StartDockerComposeEnv ¶
Types ¶
type DockerComposeEnv ¶
type DockerComposeEnv struct {
BootController *controller.BootController
BootType dockercompose.BootType
}
func NewDockerComposeEnv ¶
func NewDockerComposeEnv() *DockerComposeEnv
func (*DockerComposeEnv) Clean ¶
func (d *DockerComposeEnv) Clean() error
func (*DockerComposeEnv) ExecOnLoongCollector ¶
func (d *DockerComposeEnv) ExecOnLoongCollector(command string) (string, error)
func (*DockerComposeEnv) ExecOnSource ¶
func (*DockerComposeEnv) GetType ¶
func (d *DockerComposeEnv) GetType() string
type HostEnv ¶
type HostEnv struct {
// contains filtered or unexported fields
}
func NewHostEnv ¶
func NewHostEnv() *HostEnv
func (*HostEnv) ExecOnLoongCollector ¶
func (*HostEnv) ExecOnSource ¶
type K8sEnv ¶
type K8sEnv struct {
// contains filtered or unexported fields
}
func NewDaemonSetEnv ¶
func NewDaemonSetEnv() *K8sEnv
func NewDeploymentEnv ¶
func NewDeploymentEnv() *K8sEnv
func (*K8sEnv) AddFilter ¶
func (k *K8sEnv) AddFilter(deploymentName string, filter controller.ContainerFilter) error
func (*K8sEnv) ExecOnLoongCollector ¶
func (*K8sEnv) ExecOnSource ¶
func (*K8sEnv) RemoveFilter ¶
func (k *K8sEnv) RemoveFilter(deploymentName string, filter controller.ContainerFilter) error