github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/apiserver/params/ssh.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package params
     5  
     6  // SSHHostKeySet defines SSH host keys for one or more entities
     7  // (typically machines).
     8  type SSHHostKeySet struct {
     9  	EntityKeys []SSHHostKeys `json:"entity-keys"`
    10  }
    11  
    12  // SSHHostKeys defines the SSH host keys for one entity.
    13  type SSHHostKeys struct {
    14  	Tag        string   `json:"tag"`
    15  	PublicKeys []string `json:"public-keys"`
    16  }
    17  
    18  // SSHProxyResult defines the response from the SSHClient.Proxy API.
    19  type SSHProxyResult struct {
    20  	UseProxy bool `json:"use-proxy"`
    21  }
    22  
    23  // SSHAddressResults defines the response from various APIs on the
    24  // SSHClient facade.
    25  type SSHAddressResults struct {
    26  	Results []SSHAddressResult `json:"results"`
    27  }
    28  
    29  // SSHAddressResult defines a single SSH address result (see
    30  // SSHAddressResults).
    31  type SSHAddressResult struct {
    32  	Error   *Error `json:"error,omitempty"`
    33  	Address string `json:"address,omitempty"`
    34  }
    35  
    36  // SSHPublicKeysResults is used to return SSH public host keys for one
    37  // or more target for the SSHClient.PublicKeys API.
    38  type SSHPublicKeysResults struct {
    39  	Results []SSHPublicKeysResult `json:"results"`
    40  }
    41  
    42  // SSHPublicKeysResult is used to return the SSH public host keys for
    43  // one SSH target (see SSHPublicKeysResults).
    44  type SSHPublicKeysResult struct {
    45  	Error      *Error   `json:"error,omitempty"`
    46  	PublicKeys []string `json:"public-keys,omitempty"`
    47  }