goosefs-sdk 0.1.8

Goosefs Rust gRPC Client - Direct gRPC client for Goosefs Master/Worker
Documentation
// Copyright (C) 2026 Tencent. All rights reserved.
//
// 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.

// This file is @generated by prost-build.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DelegationTokenIdentifier {
    #[prost(string, optional, tag = "1")]
    pub owner: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "2")]
    pub renewer: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub real_user: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(int64, optional, tag = "4")]
    pub issue_date: ::core::option::Option<i64>,
    #[prost(int64, optional, tag = "5")]
    pub max_date: ::core::option::Option<i64>,
    #[prost(int64, optional, tag = "6")]
    pub sequence_number: ::core::option::Option<i64>,
    #[prost(int64, optional, tag = "7")]
    pub master_key_id: ::core::option::Option<i64>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DelegationToken {
    #[prost(message, required, tag = "1")]
    pub identifier: DelegationTokenIdentifier,
    #[prost(bytes = "vec", required, tag = "2")]
    pub password: ::prost::alloc::vec::Vec<u8>,
    #[prost(int64, optional, tag = "3")]
    pub renew_date: ::core::option::Option<i64>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MasterKey {
    #[prost(int64, required, tag = "1")]
    pub key_id: i64,
    #[prost(int64, required, tag = "2")]
    pub expiration_time: i64,
    #[prost(bytes = "vec", required, tag = "3")]
    pub encoded_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Capability {
    #[prost(bytes = "vec", required, tag = "1")]
    pub content: ::prost::alloc::vec::Vec<u8>,
    #[prost(bytes = "vec", required, tag = "2")]
    pub authenticator: ::prost::alloc::vec::Vec<u8>,
    #[prost(int64, required, tag = "3")]
    pub key_id: i64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Content {
    #[prost(int64, required, tag = "1")]
    pub file_id: i64,
    #[prost(int32, required, tag = "2")]
    pub access_mode: i32,
    #[prost(string, required, tag = "3")]
    pub user: ::prost::alloc::string::String,
    #[prost(int64, optional, tag = "4")]
    pub key_id: ::core::option::Option<i64>,
    #[prost(int64, required, tag = "5")]
    pub expiration_time_ms: i64,
}