command

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Copyright 2015 Gravitational, Inc.

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 2015 Gravitational, Inc.

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 2015 Gravitational, Inc.

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 2015 Gravitational, Inc.

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 2015 Gravitational, Inc.

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 2015 Gravitational, Inc.

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 2015 Gravitational, Inc.

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 DefaultConfigPath = "/var/lib/teleport/teleport.yaml"
View Source
const DefaultTeleportURL = "unix:///tmp/teleport.auth.sock"

Variables

This section is empty.

Functions

func RemoveBeforeClose

func RemoveBeforeClose(files ...string)

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand() *Command

func (*Command) AddNewBackendKey

func (cmd *Command) AddNewBackendKey(id string)

func (*Command) AgentLogin

func (cmd *Command) AgentLogin(agentAddr string, proxyAddr string, ttl time.Duration)

func (*Command) AgentStart

func (cmd *Command) AgentStart(agentAddr string, apiAddr string)

func (*Command) DeleteBackendKey

func (cmd *Command) DeleteBackendKey(id string)

func (*Command) DeleteRemoteCertificate

func (cmd *Command) DeleteRemoteCertificate(id, domainName, certType string)

func (*Command) DeleteUser

func (cmd *Command) DeleteUser(user string)

func (*Command) ExportBackendKey

func (cmd *Command) ExportBackendKey(dir, id string)

func (*Command) GenerateBackendKey

func (cmd *Command) GenerateBackendKey(name, filename string)

func (*Command) GenerateKeyPair

func (cmd *Command) GenerateKeyPair(privateKeyPath, publicKeyPath, passphrase string) error

func (*Command) GenerateToken

func (cmd *Command) GenerateToken(domainName, role string, ttl time.Duration,
	output, secretKey string) error

func (*Command) GetBackendKeys

func (cmd *Command) GetBackendKeys()

func (*Command) GetHostCertificateAuthority

func (cmd *Command) GetHostCertificateAuthority()

func (*Command) GetRemoteCertificates

func (cmd *Command) GetRemoteCertificates(domainName, certType string)

func (*Command) GetUserCertificateAuthority

func (cmd *Command) GetUserCertificateAuthority()

func (*Command) GetUserKeys

func (cmd *Command) GetUserKeys(user string)

func (*Command) GetUsers

func (cmd *Command) GetUsers()

func (*Command) ImportBackendKey

func (cmd *Command) ImportBackendKey(filename string)

func (*Command) NewKey

func (cmd *Command) NewKey(filename string) error
func (cmd *Command) NewUserWebLink(webHostPort string, user string)

func (*Command) ResetHostCertificateAuthority

func (cmd *Command) ResetHostCertificateAuthority(confirm bool)

func (*Command) ResetUserCertificateAuthority

func (cmd *Command) ResetUserCertificateAuthority(confirm bool)

func (*Command) Run

func (cmd *Command) Run(args []string) error

func (*Command) SetClient

func (cmd *Command) SetClient(client *auth.TunClient)

func (*Command) SetOut

func (cmd *Command) SetOut(out io.Writer)

func (*Command) SetPass

func (cmd *Command) SetPass(user, pass string)

func (*Command) UpsertKey

func (cmd *Command) UpsertKey(user, keyID, key string, ttl time.Duration)

func (*Command) UpsertRemoteCertificate

func (cmd *Command) UpsertRemoteCertificate(id, domainName, certType, path string, ttl time.Duration)

Jump to

Keyboard shortcuts

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