func (rid ImageRepoDetails) SecretData() ([]byte, error) {
	if rid.BasicAuthConfig.Empty() && rid.TokenAuthConfig.Empty() {
		return nil, nil
	}
	rid.Repository = ""
	o := dockerConfigData{
		Auths: map[string]ImageRepoDetails{
			rid.ServerAddress: rid,
		},
	}
	return json.Marshal(o)
}
// SecretData returns secret data format.
SecretData returns secret data format.
// SecretData returns secret data format .
func (rid ImageRepoDetails) SecretData() ([]byte, error) {
	if rid.BasicAuthConfig.Empty() && rid.TokenAuthConfig.Empty() {
		return nil, nil
	}
	rid.Repository = ""
	o := dockerConfigData{
		Auths: map[string]ImageRepoDetails{
			rid.ServerAddress: rid,
		},
	}
	return json.Marshal(o)
}
func ( rid ImageRepoDetails ) SecretData ( ) ( [ ] byte , error ) { if rid . BasicAuthConfig . Empty ( ) && rid . TokenAuthConfig . Empty ( ) { return nil , nil } rid . Repository = " " o := dockerConfigData { Auths : map [ string ] ImageRepoDetails { rid . ServerAddress : rid , } , } return json . Marshal ( o ) }
SecretData returns secret data format.
SecretData returns secret data format .