setup

package
v0.0.0-...-ac9e6a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

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.

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.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExposePort

func ExposePort(ctx context.Context, source, target string) (context.Context, error)

func InitEnv

func InitEnv(envType string)

func MountVolume

func MountVolume(ctx context.Context, source, target string) (context.Context, error)

func SetDockerComposeDependOn

func SetDockerComposeDependOn(ctx context.Context, dependOnContainers string) (context.Context, error)

func StartDockerComposeEnv

func StartDockerComposeEnv(ctx context.Context, dependencyName string) (context.Context, error)

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) GetData

func (d *DockerComposeEnv) GetData() (*protocol.LogGroup, 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 (h *HostEnv) ExecOnLogtail(command string) error

func (*HostEnv) ExecOnSource

func (h *HostEnv) ExecOnSource(command string) error

func (*HostEnv) GetType

func (h *HostEnv) GetType() string

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 (k *K8sEnv) ExecOnLogtail(command string) error

func (*K8sEnv) ExecOnSource

func (k *K8sEnv) ExecOnSource(command string) error

func (*K8sEnv) GetType

func (k *K8sEnv) GetType() string

func (*K8sEnv) RemoveFilter

func (k *K8sEnv) RemoveFilter(filter controller.ContainerFilter) error

type TestEnv

type TestEnv interface {
	GetType() string
	ExecOnLogtail(command string) error
	ExecOnSource(command string) error
}
var Env TestEnv

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL