CreateClusterMember generates a join token to add a cluster member.
(member api.ClusterMembersPost)
| 188 | |
| 189 | // CreateClusterMember generates a join token to add a cluster member. |
| 190 | func (r *ProtocolIncus) CreateClusterMember(member api.ClusterMembersPost) (Operation, error) { |
| 191 | if !r.HasExtension("clustering_join_token") { |
| 192 | return nil, errors.New("The server is missing the required \"clustering_join_token\" API extension") |
| 193 | } |
| 194 | |
| 195 | op, _, err := r.queryOperation("POST", "/cluster/members", member, "") |
| 196 | if err != nil { |
| 197 | return nil, err |
| 198 | } |
| 199 | |
| 200 | return op, nil |
| 201 | } |
| 202 | |
| 203 | // UpdateClusterCertificate updates the cluster certificate for every node in the cluster. |
| 204 | func (r *ProtocolIncus) UpdateClusterCertificate(certs api.ClusterCertificatePut, ETag string) error { |
nothing calls this directly
no test coverage detected