diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-07-09 03:19:21 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-07-09 03:19:21 -0700 |
| commit | 3d624d1e16a88840d8c4c87214ff3afd8c30db7f (patch) | |
| tree | b5edd4a98c3b87f79e58d8a895e6d6182568ad49 /weed/filer/s3iam_conf.go | |
| parent | ecce300964b1cb46069e8839659de5bbabb28771 (diff) | |
| download | seaweedfs-3d624d1e16a88840d8c4c87214ff3afd8c30db7f.tar.xz seaweedfs-3d624d1e16a88840d8c4c87214ff3afd8c30db7f.zip | |
rename
Diffstat (limited to 'weed/filer/s3iam_conf.go')
| -rw-r--r-- | weed/filer/s3iam_conf.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/filer/s3iam_conf.go b/weed/filer/s3iam_conf.go index 92387fb09..55c976915 100644 --- a/weed/filer/s3iam_conf.go +++ b/weed/filer/s3iam_conf.go @@ -4,6 +4,7 @@ import ( "bytes" "github.com/chrislusf/seaweedfs/weed/pb/iam_pb" "github.com/golang/protobuf/jsonpb" + "github.com/golang/protobuf/proto" "io" ) @@ -14,7 +15,7 @@ func ParseS3ConfigurationFromBytes(content []byte, config *iam_pb.S3ApiConfigura return nil } -func S3ConfigurationToText(writer io.Writer, config *iam_pb.S3ApiConfiguration) error { +func ProtoToText(writer io.Writer, config proto.Message) error { m := jsonpb.Marshaler{ EmitDefaults: false, |
