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
- func RemoveBeforeClose(files ...string)
- type Command
- func (cmd *Command) AddNewBackendKey(id string)
- func (cmd *Command) AgentLogin(agentAddr string, proxyAddr string, ttl time.Duration)
- func (cmd *Command) AgentStart(agentAddr string, apiAddr string)
- func (cmd *Command) DeleteBackendKey(id string)
- func (cmd *Command) DeleteRemoteCertificate(id, domainName, certType string)
- func (cmd *Command) DeleteUser(user string)
- func (cmd *Command) ExportBackendKey(dir, id string)
- func (cmd *Command) GenerateBackendKey(name, filename string)
- func (cmd *Command) GenerateKeyPair(privateKeyPath, publicKeyPath, passphrase string) error
- func (cmd *Command) GenerateToken(domainName, role string, ttl time.Duration, output, secretKey string) error
- func (cmd *Command) GetBackendKeys()
- func (cmd *Command) GetHostCertificateAuthority()
- func (cmd *Command) GetRemoteCertificates(domainName, certType string)
- func (cmd *Command) GetUserCertificateAuthority()
- func (cmd *Command) GetUserKeys(user string)
- func (cmd *Command) GetUsers()
- func (cmd *Command) ImportBackendKey(filename string)
- func (cmd *Command) NewKey(filename string) error
- func (cmd *Command) NewUserWebLink(webHostPort string, user string)
- func (cmd *Command) ResetHostCertificateAuthority(confirm bool)
- func (cmd *Command) ResetUserCertificateAuthority(confirm bool)
- func (cmd *Command) Run(args []string) error
- func (cmd *Command) SetClient(client *auth.TunClient)
- func (cmd *Command) SetOut(out io.Writer)
- func (cmd *Command) SetPass(user, pass string)
- func (cmd *Command) UpsertKey(user, keyID, key string, ttl time.Duration)
- func (cmd *Command) UpsertRemoteCertificate(id, domainName, certType, path string, ttl time.Duration)
Constants ¶
const DefaultConfigPath = "/var/lib/teleport/teleport.yaml"
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 (*Command) AgentLogin ¶
func (*Command) AgentStart ¶
func (*Command) DeleteBackendKey ¶
func (*Command) DeleteRemoteCertificate ¶
func (*Command) DeleteUser ¶
func (*Command) ExportBackendKey ¶
func (*Command) GenerateBackendKey ¶
func (*Command) GenerateKeyPair ¶
func (*Command) GenerateToken ¶
func (*Command) GetBackendKeys ¶
func (cmd *Command) GetBackendKeys()
func (*Command) GetHostCertificateAuthority ¶
func (cmd *Command) GetHostCertificateAuthority()
func (*Command) GetRemoteCertificates ¶
func (*Command) GetUserCertificateAuthority ¶
func (cmd *Command) GetUserCertificateAuthority()