github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/artifactory/commands/docker/docker.go (about)

     1  package docker
     2  
     3  import (
     4  	"github.com/jfrog/jfrog-cli-go/artifactory/utils"
     5  	"github.com/jfrog/jfrog-cli-go/utils/config"
     6  )
     7  
     8  type DockerCommand struct {
     9  	imageTag           string
    10  	repo               string
    11  	buildConfiguration *utils.BuildConfiguration
    12  	rtDetails          *config.ArtifactoryDetails
    13  	skipLogin          bool
    14  }
    15  
    16  func (dc *DockerCommand) ImageTag() string {
    17  	return dc.imageTag
    18  }
    19  
    20  func (dc *DockerCommand) SetImageTag(imageTag string) *DockerCommand {
    21  	dc.imageTag = imageTag
    22  	return dc
    23  }
    24  
    25  func (dc *DockerCommand) Repo() string {
    26  	return dc.repo
    27  }
    28  
    29  func (dc *DockerCommand) SetRepo(repo string) *DockerCommand {
    30  	dc.repo = repo
    31  	return dc
    32  }
    33  
    34  func (dc *DockerCommand) BuildConfiguration() *utils.BuildConfiguration {
    35  	return dc.buildConfiguration
    36  }
    37  
    38  func (dc *DockerCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *DockerCommand {
    39  	dc.buildConfiguration = buildConfiguration
    40  	return dc
    41  }
    42  
    43  func (dc *DockerCommand) SetSkipLogin(skipLogin bool) *DockerCommand {
    44  	dc.skipLogin = skipLogin
    45  	return dc
    46  }
    47  
    48  func (dc *DockerCommand) RtDetails() *config.ArtifactoryDetails {
    49  	return dc.rtDetails
    50  }
    51  
    52  func (dc *DockerCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *DockerCommand {
    53  	dc.rtDetails = rtDetails
    54  	return dc
    55  }