...

Package utils

import "edge-infra.dev/hack/tools/lumberjack/utils"
Overview
Index

Overview ▾

Constants

const (
    LongHelp = `
    CLI program written to append container cluster resources deployed on a banner infra cluster with a logging config. This config will tell fluentbit-gke to only forward system logs.

    The cli program can be run like so:

    lumberjack --bannerInfraCluster=someBannerInfraCluster --topLevelProjectID=someForemanProject

    The --bannerInfraCluster and --topLevelProjectID flags are required.`
)

func GetClient

func GetClient(ctx context.Context, projectID, clusterName, zone string) (*client.Client, error)

type LumberjackCommand

type LumberjackCommand struct {
    Client client.Client
}

func New

func New() *LumberjackCommand

func (*LumberjackCommand) Exec

func (l *LumberjackCommand) Exec(name, shortUsage, shortHelp string, fs *flag.FlagSet) *ffcli.Command

func (*LumberjackCommand) SetClusterConnection

func (l *LumberjackCommand) SetClusterConnection(client *client.Client) *LumberjackCommand