Documentation ¶
Overview ¶
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.
Index ¶
- Variables
- type OmClient
- func (om *OmClient) AllocateBlock(volume string, bucket string, key string, clientID *uint64) (*ozone_proto.AllocateBlockResponse, error)
- func (om *OmClient) CommitKey(volume string, bucket string, key string, id *uint64, ...) (common.Key, error)
- func (om *OmClient) CreateBucket(volume string, bucket string) error
- func (om *OmClient) CreateKey(volume string, bucket string, key string) (*ozone_proto.CreateKeyResponse, error)
- func (om *OmClient) CreateVolume(name string) error
- func (om *OmClient) GetBucket(volume string, bucket string) (common.Bucket, error)
- func (om *OmClient) GetKey(volume string, bucket string, key string) (*ozone_proto.KeyInfo, error)
- func (om *OmClient) GetVolume(name string) (common.Volume, error)
- func (om *OmClient) ListBucket(volume string) ([]common.Bucket, error)
- func (om *OmClient) ListKeys(volume string, bucket string) ([]*ozone_proto.KeyInfo, error)
- func (om *OmClient) ListKeysPrefix(volume string, bucket string, prefix string) ([]*ozone_proto.KeyInfo, error)
- func (om *OmClient) ListVolumes() ([]common.Volume, error)
Constants ¶
This section is empty.
Variables ¶
var OM_PROTOCOL = "org.apache.hadoop.ozone.om.protocol.OzoneManagerProtocol"
Functions ¶
This section is empty.
Types ¶
type OmClient ¶
type OmClient struct { OmHost string // contains filtered or unexported fields }
func CreateOmClient ¶
func (*OmClient) AllocateBlock ¶
func (om *OmClient) AllocateBlock(volume string, bucket string, key string, clientID *uint64) (*ozone_proto.AllocateBlockResponse, error)
func (*OmClient) CreateBucket ¶
func (*OmClient) CreateKey ¶
func (om *OmClient) CreateKey(volume string, bucket string, key string) (*ozone_proto.CreateKeyResponse, error)