github.com/containerd/nerdctl@v1.7.7/pkg/api/types/ipfs_types.go (about)

     1  /*
     2     Copyright The containerd Authors.
     3  
     4     Licensed under the Apache License, Version 2.0 (the "License");
     5     you may not use this file except in compliance with the License.
     6     You may obtain a copy of the License at
     7  
     8         http://www.apache.org/licenses/LICENSE-2.0
     9  
    10     Unless required by applicable law or agreed to in writing, software
    11     distributed under the License is distributed on an "AS IS" BASIS,
    12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13     See the License for the specific language governing permissions and
    14     limitations under the License.
    15  */
    16  
    17  package types
    18  
    19  import (
    20  	"time"
    21  )
    22  
    23  // IPFSRegistryServeOptions specifies options for `nerdctl ipfs registry serve`.
    24  type IPFSRegistryServeOptions struct {
    25  	// ListenRegistry address to listen
    26  	ListenRegistry string
    27  	// IPFSAddress multiaddr of IPFS API (default is pulled from $IPFS_PATH/api file. If $IPFS_PATH env var is not present, it defaults to ~/.ipfs)
    28  	IPFSAddress string
    29  	// ReadRetryNum times to retry query on IPFS. Zero or lower means no retry.
    30  	ReadRetryNum int
    31  	// ReadTimeout timeout duration of a read request to IPFS. Zero means no timeout.
    32  	ReadTimeout time.Duration
    33  }