cli

package
v0.0.0-...-cd06882 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 56 Imported by: 0

Documentation

Overview

Copyright 2021 The Chromium 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.

Package cli contains implementation details for a Pinpoint RPC client which allows us to start Pinpoint jobs from the commandline.

Copyright 2021 The Chromium 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

Constants

View Source
const (
	TASK    = "task"
	BOT     = "bot"
	BUILD   = "build"
	ISOLATE = "isolate"
)
View Source
const MaxConcurrency = 5
View Source
const MaxScheduleConcurrency = 1

TODO(crbug/1230880): Increase concurrency after we solve the underlying Datastore issue.

Variables

View Source
var (
	CLPattern = `([1-9][\d]*)(?:/([1-9][\d]*))?`

	URLPattern = fmt.Sprintf(
		`^https://%s/c/[^+]+/\+/%s$`,
		hostPattern,
		CLPattern)

	URLRe = regexp.MustCompile(URLPattern)
)

Functions

func Main

func Main(p Param, args []string) int

Main invokes the subcommands for the application.

Types

type Param

type Param struct {
	DefaultServiceDomain, OIDCProviderURL string
	Auth                                  auth.Options
}

Param includes the parameters to use for the CLI application.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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