setup

package
v0.0.0-...-4857921 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 26 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(ctx context.Context, envType string) (context.Context, error)

func Mkdir

func Mkdir(ctx context.Context, dir string) (context.Context, error)

func MountVolume

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

func RunCommandOnLoongCollector

func RunCommandOnLoongCollector(ctx context.Context, command string) (context.Context, error)

func RunCommandOnSource

func RunCommandOnSource(ctx context.Context, command string) (context.Context, error)

func SetAgentPID

func SetAgentPID(ctx context.Context) (context.Context, error)

func SetDockerComposeBootType

func SetDockerComposeBootType(t dockercompose.BootType) 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)

func SwitchCurrentWorkingDeployment

func SwitchCurrentWorkingDeployment(ctx context.Context, deploymentName string) (context.Context, error)

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 (d *DockerComposeEnv) ExecOnSource(ctx context.Context, command string) (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) ExecOnLoongCollector

func (h *HostEnv) ExecOnLoongCollector(command string) (string, error)

func (*HostEnv) ExecOnSource

func (h *HostEnv) ExecOnSource(ctx context.Context, command string) (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 NewDeploymentEnv

func NewDeploymentEnv() *K8sEnv

func (*K8sEnv) AddFilter

func (k *K8sEnv) AddFilter(deploymentName string, filter controller.ContainerFilter) error

func (*K8sEnv) Apply

func (k *K8sEnv) Apply(filePath string) error

func (*K8sEnv) Delete

func (k *K8sEnv) Delete(filePath string) error

func (*K8sEnv) ExecOnLoongCollector

func (k *K8sEnv) ExecOnLoongCollector(command string) (string, error)

func (*K8sEnv) ExecOnSource

func (k *K8sEnv) ExecOnSource(ctx context.Context, command string) (string, error)

func (*K8sEnv) GetType

func (k *K8sEnv) GetType() string

func (*K8sEnv) RemoveFilter

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

func (*K8sEnv) Scale

func (k *K8sEnv) Scale(deploymentName string, namespace string, replicas int) error

type TestEnv

type TestEnv interface {
	GetType() string
	ExecOnLoongCollector(command string) (string, error)
	ExecOnSource(ctx context.Context, command string) (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