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(envType string)
- func MountVolume(ctx context.Context, source, target string) (context.Context, error)
- func SetDockerComposeDependOn(ctx context.Context, dependOnContainers string) (context.Context, error)
- func StartDockerComposeEnv(ctx context.Context, dependencyName string) (context.Context, error)
- type DockerComposeEnv
- type HostEnv
- type K8sEnv
- type TestEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExposePort ¶
func MountVolume ¶
Types ¶
type DockerComposeEnv ¶
type DockerComposeEnv struct {
BootController *controller.BootController
}
func NewDockerComposeEnv ¶
func NewDockerComposeEnv() *DockerComposeEnv
func (*DockerComposeEnv) Clean ¶
func (d *DockerComposeEnv) Clean() error
func (*DockerComposeEnv) ExecOnLogtail ¶
func (d *DockerComposeEnv) ExecOnLogtail(command string) error
func (*DockerComposeEnv) ExecOnSource ¶
func (d *DockerComposeEnv) ExecOnSource(command string) error
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) ExecOnLogtail ¶
func (*HostEnv) ExecOnSource ¶
type K8sEnv ¶
type K8sEnv struct {
// contains filtered or unexported fields
}
func NewDaemonSetEnv ¶
func NewDaemonSetEnv() *K8sEnv
func (*K8sEnv) AddFilter ¶
func (k *K8sEnv) AddFilter(filter controller.ContainerFilter) error
func (*K8sEnv) ExecOnLogtail ¶
func (*K8sEnv) ExecOnSource ¶
func (*K8sEnv) RemoveFilter ¶
func (k *K8sEnv) RemoveFilter(filter controller.ContainerFilter) error